Commit 926cf83
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 7139557 commit 926cf83
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3945 | 3945 | | |
3946 | 3946 | | |
3947 | 3947 | | |
| 3948 | + | |
3948 | 3949 | | |
3949 | 3950 | | |
3950 | 3951 | | |
| |||
0 commit comments