Signing an URI an checking, if it is a valid signation in Symfony

Code
<?php

use Symfony\Component\HttpKernel\UriSigner;

// create UriSigner with a secret
$signer = new UriSigner('fhojd2ctzzgc8');

$uri 'https://www.google.com/search?q=php';
$signedUri $signer->sign($uri);

echo 
$signedUri PHP_EOL PHP_EOL;

if (
$signer->check($signedUri)) {
    echo 
'check was ok. Now something can be done with URI';
}
Result
https://www.google.com/search?q=php&_hash=QaY0qOn6sVSLDWVIYs6KqYggCvEypJHbHaB%2Fj21QZLw%3D

check was ok. Now something can be done with URI
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6