From e6e2797755f1829af123c93527311142b1c60af4 Mon Sep 17 00:00:00 2001 From: Martin Herndl Date: Fri, 28 Jan 2022 22:59:22 +0100 Subject: [PATCH] Fix tests on 32 bit --- .../Comparison/StrictComparisonOfDifferentTypesRuleTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/PHPStan/Rules/Comparison/StrictComparisonOfDifferentTypesRuleTest.php b/tests/PHPStan/Rules/Comparison/StrictComparisonOfDifferentTypesRuleTest.php index 6b3ad7be53..a39294e995 100644 --- a/tests/PHPStan/Rules/Comparison/StrictComparisonOfDifferentTypesRuleTest.php +++ b/tests/PHPStan/Rules/Comparison/StrictComparisonOfDifferentTypesRuleTest.php @@ -4,6 +4,7 @@ use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; +use const PHP_INT_SIZE; use const PHP_VERSION_ID; /** @@ -461,6 +462,9 @@ public function testBug3357(): void public function testBug4848(): void { + if (PHP_INT_SIZE !== 8) { + $this->markTestSkipped('Test requires 64-bit platform.'); + } $this->checkAlwaysTrueStrictComparison = true; $this->analyse([__DIR__ . '/data/bug-4848.php'], [ [