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
|
// Add a separate version for the CLDR library version
|
||||||
if ($this->runtime->hasClass('ResourceBundle')) {
|
if ($this->runtime->hasClass('ResourceBundle')) {
|
||||||
$cldrVersion = $this->runtime->invoke(['ResourceBundle', 'create'], ['root', 'ICUDATA', false])->get('Version');
|
$resourceBundle = $this->runtime->invoke(['ResourceBundle', 'create'], ['root', 'ICUDATA', false]);
|
||||||
$this->addLibrary('icu-cldr', $cldrVersion, 'ICU CLDR project version');
|
if ($resourceBundle !== null) {
|
||||||
|
$this->addLibrary('icu-cldr', $resourceBundle->get('Version');, 'ICU CLDR project version');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->runtime->hasClass('IntlChar')) {
|
if ($this->runtime->hasClass('IntlChar')) {
|
||||||
|
|
Loading…
Reference in New Issue