We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b4ca5a commit 091cb3dCopy full SHA for 091cb3d
tests/AstTest.php
@@ -127,10 +127,6 @@ function __construct(?\HyperfTest\Di\Stub\Foo $foo)
127
128
public function testAstProxyForEnum()
129
{
130
- if (PHP_VERSION_ID < 80100) {
131
- $this->markTestSkipped('The version below 8.1 does not support enum.');
132
- }
133
-
134
$ast = new Ast();
135
$code = $ast->proxy(FooEnumStruct::class);
136
tests/Stub/FooEnum.php
@@ -11,9 +11,7 @@
11
*/
12
namespace HyperfTest\Di\Stub;
13
14
-if (PHP_VERSION_ID > 80100) {
15
- enum FooEnum: int
16
- {
17
- case DEFAULT = 1;
18
+enum FooEnum: int
+{
+ case DEFAULT = 1;
19
}
0 commit comments