Skip to content

Commit 8a17c29

Browse files
committed
Fix
1 parent 8cd663f commit 8a17c29

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@ public function testBug7068(): void
723723

724724
public function testDiscussion6993(): void
725725
{
726+
if (PHP_VERSION_ID < 80000) {
727+
$this->markTestSkipped('Test requires PHP 8.0.');
728+
}
729+
726730
$errors = $this->runAnalyse(__DIR__ . '/data/bug-6993.php');
727731
$this->assertCount(1, $errors);
728732
$this->assertSame('Parameter #1 $specificable of method Bug6993\AndSpecificationValidator<Bug6993\TestSpecification,Bug6993\Foo>::isSatisfiedBy() expects Bug6993\Foo, Bug6993\Bar given.', $errors[0]->getMessage());

tests/PHPStan/Analyser/data/bug-6993.php

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

33
namespace Bug6993;
44

0 commit comments

Comments
 (0)