Skip to content

Commit 091cb3d

Browse files
authored
Removed the php version check. (#5850)
1 parent 2b4ca5a commit 091cb3d

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

tests/AstTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,6 @@ function __construct(?\HyperfTest\Di\Stub\Foo $foo)
127127

128128
public function testAstProxyForEnum()
129129
{
130-
if (PHP_VERSION_ID < 80100) {
131-
$this->markTestSkipped('The version below 8.1 does not support enum.');
132-
}
133-
134130
$ast = new Ast();
135131
$code = $ast->proxy(FooEnumStruct::class);
136132

tests/Stub/FooEnum.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
*/
1212
namespace HyperfTest\Di\Stub;
1313

14-
if (PHP_VERSION_ID > 80100) {
15-
enum FooEnum: int
16-
{
17-
case DEFAULT = 1;
18-
}
14+
enum FooEnum: int
15+
{
16+
case DEFAULT = 1;
1917
}

0 commit comments

Comments
 (0)