Skip to content

[Intl][Validator] Language::exists fail for es_419 #35513

Closed
@jkobus

Description

@jkobus

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions