Skip to content

Commit e6e2797

Browse files
herndlmondrejmirtes
authored andcommitted
Fix tests on 32 bit
1 parent 72d5a84 commit e6e2797

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/PHPStan/Rules/Comparison/StrictComparisonOfDifferentTypesRuleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use PHPStan\Rules\Rule;
66
use PHPStan\Testing\RuleTestCase;
7+
use const PHP_INT_SIZE;
78
use const PHP_VERSION_ID;
89

910
/**
@@ -461,6 +462,9 @@ public function testBug3357(): void
461462

462463
public function testBug4848(): void
463464
{
465+
if (PHP_INT_SIZE !== 8) {
466+
$this->markTestSkipped('Test requires 64-bit platform.');
467+
}
464468
$this->checkAlwaysTrueStrictComparison = true;
465469
$this->analyse([__DIR__ . '/data/bug-4848.php'], [
466470
[

0 commit comments

Comments
 (0)