Skip to content

Commit 0d879cc

Browse files
committed
Fix build
1 parent 5c22b9d commit 0d879cc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/PHPStan/Rules/Playground/PromoteParameterRuleWithOriginalRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use PHPStan\Rules\Methods\OverridingMethodRule;
1212
use PHPStan\Rules\Rule;
1313
use PHPStan\Testing\RuleTestCase;
14+
use const PHP_VERSION_ID;
1415

1516
/**
1617
* @extends RuleTestCase<PromoteParameterRule<InClassMethodNode>>
@@ -39,6 +40,10 @@ protected function getRule(): Rule
3940

4041
public function testRule(): void
4142
{
43+
if (PHP_VERSION_ID < 80300) {
44+
$this->markTestSkipped('Test requires PHP 8.3.');
45+
}
46+
4247
$this->analyse([__DIR__ . '/data/promote-missing-override.php'], [
4348
[
4449
'Method PromoteMissingOverride\Bar::doFoo() overrides method PromoteMissingOverride\Foo::doFoo() but is missing the #[\Override] attribute.',

tests/PHPStan/Rules/Playground/data/promote-missing-override.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.3
22

33
namespace PromoteMissingOverride;
44

0 commit comments

Comments
 (0)