Skip to content

Commit 5a75d56

Browse files
rattusczondrejmirtes
authored andcommitted
Don't lint data dir, skip test for php <7.4
1 parent 6baa42f commit 5a75d56

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

build.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
>
5656
<arg value="--exclude"/>
5757
<arg path="tests/PHPStan/Analyser/data"/>
58+
<arg value="--exclude"/>
59+
<arg path="tests/Rule/Nette/data"/>
5860
<arg path="src" />
5961
<arg path="tests" />
6062
</exec>

tests/Rule/Nette/PresenterInjectedPropertiesExtensionTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ class PresenterInjectedPropertiesExtensionTest extends \PHPStan\Testing\LevelsTe
77

88
public function dataTopics(): array
99
{
10+
if (PHP_VERSION_ID < 70400) {
11+
self::markTestSkipped('Only for PHP 7.4+');
12+
}
13+
1014
return [
1115
['presenterInject'],
1216
];

0 commit comments

Comments
 (0)