Skip to content

Commit e1301ac

Browse files
committed
Adjust enum tests for PHP8.1+
1 parent c5ae947 commit e1301ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class DeprecationProviderTest extends PHPStanTestCase
2222

2323
public function testCustomDeprecations(): void
2424
{
25-
if (PHP_VERSION_ID < 80000) {
26-
self::markTestSkipped('PHP 8.0+ is required as CustomDeprecationProvider uses unions.');
25+
if (PHP_VERSION_ID < 80100) {
26+
self::markTestSkipped('PHP 8.1+ is required to test enums.');
2727
}
2828

2929
require __DIR__ . '/data/deprecations.php';

Diff for: tests/PHPStan/Reflection/Deprecation/data/deprecations.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php // lint >= 8.1
22

33
namespace CustomDeprecations;
44

0 commit comments

Comments
 (0)