Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 16, 2021
1 parent cb1050b commit 1d72885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PHPStan/Rules/Classes/InstantiationRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ public function testBug4681(): void

public function testFirstClassCallable(): void
{
if (PHP_VERSION_ID < 80100 && !self::$useStaticReflectionProvider) {
$this->markTestSkipped('Test requires PHP 8.1.');
if (PHP_VERSION_ID < 80100 || !self::$useStaticReflectionProvider) {
$this->markTestSkipped('Test requires PHP 8.1 and static reflection.');
}

// handled by a different rule
Expand Down

0 comments on commit 1d72885

Please sign in to comment.