Closed
Description
Symfony version(s) affected
5.3.10
Description
After update to symfony/validator 5.3.10 #43388 the Url Validator marks urls like http://internal-api
as invalid. This url was fine in version 5.3.8 and the PR seems to be fixing a different issue, so it seems like unwanted consequence. The hyphen seems to be the problem. Urls like this one are commonly used for docker-compose services.
How to reproduce
$validator = Symfony\Component\Validator\Validation::createValidator();
$errors = $validator->validate('http://internal-api', [new Url()]);
var_dump($errors);
Possible Solution
No response
Additional Context
No response