diff --git a/src/Symfony/Component/Intl/CONTRIBUTING.md b/src/Symfony/Component/Intl/CONTRIBUTING.md index b290393346..315c28ab6e 100644 --- a/src/Symfony/Component/Intl/CONTRIBUTING.md +++ b/src/Symfony/Component/Intl/CONTRIBUTING.md @@ -48,7 +48,7 @@ To update the stub files, run the update-stubs.php script: The script will fail if you don't have the latest ICU version. If you want to upgrade the ICU version, adjust the return value of the -`Intl::getStubIcuVersion()` before you run the script. +`Intl::getIcuStubVersion()` before you run the script. The script creates copies of the binary resource bundles in the Icu component and stores them in the Resources/ directory of the Intl component. The copies diff --git a/src/Symfony/Component/Intl/Intl.php b/src/Symfony/Component/Intl/Intl.php index 706bd8dab1..df2d57976d 100644 --- a/src/Symfony/Component/Intl/Intl.php +++ b/src/Symfony/Component/Intl/Intl.php @@ -286,7 +286,7 @@ class Intl * * @return string The ICU version of the stub classes. */ - public static function getStubIcuVersion() + public static function getIcuStubVersion() { return '50.1.0'; } diff --git a/src/Symfony/Component/Intl/Resources/bin/update-stubs.php b/src/Symfony/Component/Intl/Resources/bin/update-stubs.php index 3127ce4f5c..c07c1bfcc9 100644 --- a/src/Symfony/Component/Intl/Resources/bin/update-stubs.php +++ b/src/Symfony/Component/Intl/Resources/bin/update-stubs.php @@ -50,7 +50,7 @@ if (!class_exists('\Symfony\Component\Icu\IcuData')) { } $shortIcuVersionInPhp = strip_minor_versions(Intl::getIcuVersion()); -$shortIcuVersionInIntlComponent = strip_minor_versions(Intl::getStubIcuVersion()); +$shortIcuVersionInIntlComponent = strip_minor_versions(Intl::getIcuStubVersion()); $shortIcuVersionInIcuComponent = strip_minor_versions(IcuData::getVersion()); if ($shortIcuVersionInPhp !== $shortIcuVersionInIcuComponent) { diff --git a/src/Symfony/Component/Intl/Tests/IntlTestCase.php b/src/Symfony/Component/Intl/Tests/IntlTestCase.php index 5c3c89be6c..104197d12d 100644 --- a/src/Symfony/Component/Intl/Tests/IntlTestCase.php +++ b/src/Symfony/Component/Intl/Tests/IntlTestCase.php @@ -47,8 +47,8 @@ abstract class IntlTestCase extends \PHPUnit_Framework_TestCase protected function skipIfInsufficientIcuVersion() { - if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getStubIcuVersion(), '!=', $precision = 1)) { - $this->markTestSkipped('Please change ICU version to ' . Intl::getStubIcuVersion()); + if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getIcuStubVersion(), '!=', $precision = 1)) { + $this->markTestSkipped('Please change ICU version to ' . Intl::getIcuStubVersion()); } }