Skip to content

Commit 5b7bb23

Browse files
committed
Fix build
1 parent 867a984 commit 5b7bb23

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,10 @@ public function testBug393(): void
956956

957957
public function testBug9474(): void
958958
{
959+
if (PHP_VERSION_ID < 80100) {
960+
$this->markTestSkipped('Test requires PHP 8.1.');
961+
}
962+
959963
$this->cliArgumentsVariablesRegistered = true;
960964
$this->polluteScopeWithLoopInitialAssignments = true;
961965
$this->checkMaybeUndefinedVariables = true;

tests/PHPStan/Rules/Variables/data/bug-9474.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php // lint >= 8.1
22

33
namespace Bug9474;
44

0 commit comments

Comments
 (0)