You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Fatal error: Uncaught Symfony\Component\Intl\Exception\OutOfBoundsException: The index no does not exist. in /Users/kiler129/vendor/symfony/intl/Data/Util/RecursiveArrayAccess.php:39
Stack trace:
#0 /Users/kiler129/vendor/symfony/intl/Data/Bundle/Reader/BundleEntryReader.php(89): Symfony\Component\Intl\Data\Util\RecursiveArrayAccess::get(Array, Array)
#1 /Users/kiler129/vendor/symfony/intl/ResourceBundle.php(58): Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReader->readEntry('/Users/kiler129/...', 'meta', Array, true)
#2 /Users/kiler129/vendor/symfony/intl/Languages.php(93): Symfony\Component\Intl\ResourceBundle::readEntry(Array, 'meta')
#3 /Users/kiler129/test.php(11): Symfony\Component\Intl\Languages::getAlpha3Code('no')
#4 {main}
Next Symfony\Component\Intl\Exception\MissingResourceException: Couldn't read the indices [Alpha2ToAlpha3][no] for the locale "meta" in "/Users/kiler129/... in /Users/kiler129/vendor/symfony/intl/Data/Bundle/Reader/BundleEntryReader.php on line 175
Fatal error: Uncaught Symfony\Component\Intl\Exception\OutOfBoundsException: The index no does not exist. in /Users/kiler129/vendor/symfony/intl/Data/Util/RecursiveArrayAccess.php:39
Stack trace:
#0 /Users/kiler129/vendor/symfony/intl/Data/Bundle/Reader/BundleEntryReader.php(89): Symfony\Component\Intl\Data\Util\RecursiveArrayAccess::get(Array, Array)
#1 /Users/kiler129/vendor/symfony/intl/ResourceBundle.php(58): Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReader->readEntry('/Users/kiler129/...', 'meta', Array, true)
#2 /Users/kiler129/vendor/symfony/intl/Languages.php(93): Symfony\Component\Intl\ResourceBundle::readEntry(Array, 'meta')
#3 /Users/kiler129/test.php(11): Symfony\Component\Intl\Languages::getAlpha3Code('no')
#4 {main}
Next Symfony\Component\Intl\Exception\MissingResourceException: Couldn't read the indices [Alpha2ToAlpha3][no] for the locale "meta" in "/Users/kiler129/... in /Users/kiler129/vendor/symfony/intl/Data/Bundle/Reader/BundleEntryReader.php on line 175
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected: 5.0.5
Description
Both
Languages::exists('no')
andLanguages::getName('no')
produce expected results, whileLanguages::getAlpha3Code('no')
crashes.How to reproduce
composer req symfony/intl
The code will produce:
The text was updated successfully, but these errors were encountered: