8000 [Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion() · symfony/symfony@b60866c · GitHub
[go: up one dir, main page]

Skip to content

Commit b60866c

Browse files
committed
[Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion()
1 parent b902b6b commit b60866c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Symfony/Component/Intl/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ To update the stub files, run the update-stubs.php script:
4848

4949
The script will fail if you don't have the latest ICU version. If you want to
5050
upgrade the ICU version, adjust the return value of the
51-
`Intl::getStubIcuVersion()` before you run the script.
51+
`Intl::getIcuStubVersion()` before you run the script.
5252

5353
The script creates copies of the binary resource bundles in the Icu component
5454
and stores them in the Resources/ directory of the Intl component. The copies

src/Symfony/Component/Intl/Intl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public static function getIcuDataVersion()
286286
*
287287
* @return string The ICU version of the stub classes.
288288
*/
289-
public static function getStubIcuVersion()
289+
public static function getIcuStubVersion()
290290
{
291291
return '50.1.0';
292292
}

src/Symfony/Component/Intl/Resources/bin/update-stubs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}
5151

5252
$shortIcuVersionInPhp = strip_minor_versions(Intl::getIcuVersion());
53-
$shortIcuVersionInIntlComponent = strip_minor_versions(Intl::getStubIcuVersion());
53+
$shortIcuVersionInIntlComponent = strip_mino 8000 r_versions(Intl::getIcuStubVersion());
5454
$shortIcuVersionInIcuComponent = strip_minor_versions(IcuData::getVersion());
5555

5656
if ($shortIcuVersionInPhp !== $shortIcuVersionInIcuComponent) {

src/Symfony/Component/Intl/Tests/IntlTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ protected function skipIfIntlExtensionNotLoaded()
4747

4848
protected function skipIfInsufficientIcuVersion()
4949
{
50-
if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getStubIcuVersion(), '!=', $precision = 1)) {
51-
$this->markTestSkipped('Please change ICU version to ' . Intl::getStubIcuVersion());
50+
if (IcuVersion::compare(Intl::getIcuVersion(), Intl::getIcuStubVersion(), '!=', $precision = 1)) {
51+
$this->markTestSkipped('Please change ICU version to ' . Intl::getIcuStubVersion());
5252
}
5353
}
5454

0 commit comments

Comments
 (0)
0