Skip to content

Commit bf4a772

Browse files
phpstan-botclaude
andcommitted
Add back #[RequiresPhp('>= 8.0')] to testBug6934
The test data file uses DOMNode which has version-dependent property types via #[LanguageLevelTypeAware] in phpstorm-stubs. On PHP < 8.0, the analysis may produce different errors since DOMNode::$parentNode lacks a native type declaration. The // lint >= 8.0 comment in the test data file is only processed by TypeInferenceTestCase, not by RuleTestCase::analyse(), so #[RequiresPhp] is needed to skip the test on older PHP versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d8d4286 commit bf4a772

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/PHPStan/Rules/Methods/CallMethodsRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3945,6 +3945,7 @@ public function testBug7369(): void
39453945
]);
39463946
}
39473947

3948+
#[RequiresPhp('>= 8.0')]
39483949
public function testBug6934(): void
39493950
{
39503951
$this->checkThisOnly = false;

0 commit comments

Comments
 (0)