We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 867a984 commit 5b7bb23Copy full SHA for 5b7bb23
tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php
@@ -956,6 +956,10 @@ public function testBug393(): void
956
957
public function testBug9474(): void
958
{
959
+ if (PHP_VERSION_ID < 80100) {
960
+ $this->markTestSkipped('Test requires PHP 8.1.');
961
+ }
962
+
963
$this->cliArgumentsVariablesRegistered = true;
964
$this->polluteScopeWithLoopInitialAssignments = true;
965
$this->checkMaybeUndefinedVariables = true;
tests/PHPStan/Rules/Variables/data/bug-9474.php
@@ -1,4 +1,4 @@
1
-<?php
+<?php // lint >= 8.1
2
3
namespace Bug9474;
4
0 commit comments