From 11f8ba884866fa661db7315fd2de9f4aff61f17c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 17 Aug 2020 09:16:16 +0200 Subject: [PATCH] Fix CS --- NumberFormatter/NumberFormatter.php | 2 +- Resources/bin/common.php | 2 +- Tests/DateFormatter/IntlDateFormatterTest.php | 2 +- Util/IntlTestHelper.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NumberFormatter/NumberFormatter.php b/NumberFormatter/NumberFormatter.php index 7792a1e7..f562c3db 100644 --- a/NumberFormatter/NumberFormatter.php +++ b/NumberFormatter/NumberFormatter.php @@ -847,7 +847,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 f6d02dcc..14100d4d 100644 --- a/Tests/DateFormatter/IntlDateFormatterTest.php +++ b/Tests/DateFormatter/IntlDateFormatterTest.php @@ -167,7 +167,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 a9f68140..7d0174c7 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.'); } }