Ignore ICU CDLR version fetching when ICU cannot initialize the resource bundle, fixes #11492
parent
3ae662f4c7
commit
ff67cdf6e6
|
@ -333,8 +333,10 @@ class PlatformRepository extends ArrayRepository
|
|||
|
||||
// Add a separate version for the CLDR library version
|
||||
if ($this->runtime->hasClass('ResourceBundle')) {
|
||||
$cldrVersion = $this->runtime->invoke(['ResourceBundle', 'create'], ['root', 'ICUDATA', false])->get('Version');
|
||||
$this->addLibrary('icu-cldr', $cldrVersion, 'ICU CLDR project version');
|
||||
$resourceBundle = $this->runtime->invoke(['ResourceBundle', 'create'], ['root', 'ICUDATA', false]);
|
||||
if ($resourceBundle !== null) {
|
||||
$this->addLibrary('icu-cldr', $resourceBundle->get('Version');, 'ICU CLDR project version');
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->runtime->hasClass('IntlChar')) {
|
||||
|
|
Loading…
Reference in New Issue