diff --git a/NumberFormatter/NumberFormatter.php b/NumberFormatter/NumberFormatter.php index aacd11be..6d48949e 100644 --- a/NumberFormatter/NumberFormatter.php +++ b/NumberFormatter/NumberFormatter.php @@ -816,7 +816,7 @@ private function getInt64Value($value) return false; } - if (PHP_INT_SIZE !== 8 && ($value > self::$int32Max || $value < -self::$int32Max - 1)) { + if (\PHP_INT_SIZE !== 8 && ($value > self::$int32Max || $value < -self::$int32Max - 1)) { return (float) $value; } diff --git a/Resources/bin/common.php b/Resources/bin/common.php index 8ebf9fdc..5a93e404 100644 --- a/Resources/bin/common.php +++ b/Resources/bin/common.php @@ -74,7 +74,7 @@ function get_icu_version_from_genrb($genrb) throw new \ErrorException($msg, 0, $type, $file, $line); }); -set_exception_handler(function (\Throwable $exception) { +set_exception_handler(function (Throwable $exception) { echo "\n"; $cause = $exception; diff --git a/Tests/DateFormatter/IntlDateFormatterTest.php b/Tests/DateFormatter/IntlDateFormatterTest.php index 10f95c01..f674c657 100644 --- a/Tests/DateFormatter/IntlDateFormatterTest.php +++ b/Tests/DateFormatter/IntlDateFormatterTest.php @@ -168,7 +168,7 @@ public function parseQuarterProvider() public function testParseThreeDigitsYears() { - if (PHP_INT_SIZE < 8) { + if (\PHP_INT_SIZE < 8) { $this->markTestSkipped('Parsing three digits years requires a 64bit PHP.'); } diff --git a/Util/IntlTestHelper.php b/Util/IntlTestHelper.php index ca9a0b59..d77d3e4d 100644 --- a/Util/IntlTestHelper.php +++ b/Util/IntlTestHelper.php @@ -86,7 +86,7 @@ public static function requireFullIntl(TestCase $testCase, $minimumIcuVersion = */ public static function require32Bit(TestCase $testCase) { - if (4 !== PHP_INT_SIZE) { + if (4 !== \PHP_INT_SIZE) { $testCase->markTestSkipped('PHP 32 bit is required.'); } } @@ -96,7 +96,7 @@ public static function require32Bit(TestCase $testCase) */ public static function require64Bit(TestCase $testCase) { - if (8 !== PHP_INT_SIZE) { + if (8 !== \PHP_INT_SIZE) { $testCase->markTestSkipped('PHP 64 bit is required.'); } }