Skip to content

Commit 6284d4e

Browse files
committed
Fix
1 parent 9f12f0f commit 6284d4e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/PHPStan/Rules/Methods/CallMethodsRuleTest.php

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

23622362
public function testBug6118(): void
23632363
{
2364+
if (PHP_VERSION_ID < 80000) {
2365+
$this->markTestSkipped('Test requires PHP 8.0');
2366+
}
2367+
23642368
$this->checkThisOnly = false;
23652369
$this->checkNullables = true;
23662370
$this->checkUnionTypes = true;

tests/PHPStan/Rules/Methods/data/bug-6118.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 Bug6118;
44

0 commit comments

Comments
 (0)