Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6b92469

Browse files
Fix build
1 parent 0aef32f commit 6b92469

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎tests/Rules/PHPUnit/MockMethodCallRuleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use PHPStan\Rules\Rule;
66
use PHPStan\Testing\RuleTestCase;
7+
use const PHP_VERSION_ID;
78

89
/**
910
* @extends RuleTestCase<MockMethodCallRule>
@@ -38,6 +39,9 @@ public function testRule(): void
3839

3940
public function testBug227(): void
4041
{
42+
if (PHP_VERSION_ID < 80000) {
43+
self::markTestSkipped('Test requires PHP 8.0.');
44+
}
4145
$this->analyse([__DIR__ . '/data/bug-227.php'], []);
4246
}
4347

‎tests/Rules/PHPUnit/data/bug-227.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 Bug227;
44

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /