File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
tests/PHPStan/Rules/Properties Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ public function testPhp83AndPropertiesInInterface(): void
2323 if (PHP_VERSION_ID >= 80400 ) {
2424 $ this ->markTestSkipped ('Test requires PHP 8.3 or earlier. ' );
2525 }
26+ if (PHP_VERSION_ID < 80000 ) {
27+ $ this ->markTestSkipped ('Property hooks cause syntax error on PHP 7.4 ' );
28+ }
2629
2730 $ this ->analyse ([__DIR__ . '/data/properties-in-interface.php ' ], [
2831 [
@@ -45,6 +48,9 @@ public function testPhp83AndPropertyHooksInInterface(): void
4548 if (PHP_VERSION_ID >= 80400 ) {
4649 $ this ->markTestSkipped ('Test requires PHP 8.3 or earlier. ' );
4750 }
51+ if (PHP_VERSION_ID < 80000 ) {
52+ $ this ->markTestSkipped ('Property hooks cause syntax error on PHP 7.4 ' );
53+ }
4854
4955 $ this ->analyse ([__DIR__ . '/data/property-hooks-in-interface.php ' ], [
5056 [
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ public function testPhpLessThan84AndHookedPropertiesInClass(): void
2323 if (PHP_VERSION_ID >= 80400 ) {
2424 $ this ->markTestSkipped ('Test requires PHP 8.3 or earlier. ' );
2525 }
26+ if (PHP_VERSION_ID < 80000 ) {
27+ $ this ->markTestSkipped ('Property hooks cause syntax error on PHP 7.4 ' );
28+ }
2629
2730 $ this ->analyse ([__DIR__ . '/data/hooked-properties-in-class.php ' ], [
2831 [
You can’t perform that action at this time.
0 commit comments