Closed
Description
Symfony version(s) affected: 4.4
Description
Languages::exists('es_419')
is not working in intl 4.4 where the same code worked with 4.3.
How to reproduce
- Checkout intl repo, latest version
- Add assertion in
\Symfony\Component\Intl\Tests\LanguagesTest::testExists
:
$this->assertTrue(Languages::exists('es_419'));
- run the test:
phpunit --group intl-data --filter testExists
- tests will fail
Repeat the same steps with 4.3 and the test will be green.
Possible Solution
I tried to dig in the code but with no luck so far.
Additional context
The language validator in symfony 4.4 will also fail due to this bug.