protected function checkUnrecognized(ErrorCollection $errors, EncodingParametersInterface $parameters)
{
if ($this->allowUnrecognized === false && empty($parameters->getUnrecognizedParameters()) === false) {
foreach ($parameters->getUnrecognizedParameters() as $name => $value) {
$errors->addQueryParameterError($name, T::t('Parameter is not allowed.'));
}
}
}