Skip to content

Commit 5cc3bac

Browse files
committed
Fix build
1 parent ca70ff0 commit 5cc3bac

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/PHPStan/Rules/DeadCode/UnusedPrivatePropertyRuleTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public function testTrait(): void
140140

141141
public function testBug3636(): void
142142
{
143+
if (!self::$useStaticReflectionProvider && PHP_VERSION_ID < 70400) {
144+
$this->markTestSkipped('Test requires PHP 7.4.');
145+
}
143146
$this->alwaysWrittenTags = [];
144147
$this->alwaysReadTags = [];
145148
$this->analyse([__DIR__ . '/data/bug-3636.php'], [

tests/PHPStan/Rules/DeadCode/data/bug-3636.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php // lint >= 7.4
22

33
namespace Bug3636;
44

0 commit comments

Comments
 (0)