@@ -49,24 +49,18 @@ public function testGetAstFromReflectionParameter()
4949 $ this ->assertSame (['' , 'HyperfTest ' , 'CodeParser ' , 'Stub ' , 'Foo ' ], $ foo2 ->type ->parts );
5050 $ this ->assertNodeParam ($ extra , $ parser ->getNodeFromReflectionParameter ($ parameters [2 ]));
5151
52- if (PHP_VERSION_ID > 80000 ) {
53- $ stmts = $ parser7 ->parse (file_get_contents (__DIR__ . '/Stub/UnionTypeFoo.php ' ));
54- /** @var ClassMethod $classMethod */
55- $ classMethod = $ stmts [1 ]->stmts [0 ]->stmts [0 ];
56- $ name = $ classMethod ->getParams ()[0 ];
57-
58- $ foo = new ReflectionClass (UnionTypeFoo::class);
59- $ parameters = $ foo ->getMethod ('__construct ' )->getParameters ();
60- $ this ->assertNodeParam ($ name , $ parser ->getNodeFromReflectionParameter ($ parameters [0 ]));
61- }
52+ $ stmts = $ parser7 ->parse (file_get_contents (__DIR__ . '/Stub/UnionTypeFoo.php ' ));
53+ /** @var ClassMethod $classMethod */
54+ $ classMethod = $ stmts [1 ]->stmts [0 ]->stmts [0 ];
55+ $ name = $ classMethod ->getParams ()[0 ];
56+
57+ $ foo = new ReflectionClass (UnionTypeFoo::class);
58+ $ parameters = $ foo ->getMethod ('__construct ' )->getParameters ();
59+ $ this ->assertNodeParam ($ name , $ parser ->getNodeFromReflectionParameter ($ parameters [0 ]));
6260 }
6361
6462 public function testGetExprFromEnum ()
6563 {
66- if (PHP_VERSION_ID < 80100 ) {
67- $ this ->markTestSkipped ('The version below 8.1 does not support enum. ' );
68- }
69-
7064 $ parser = new PhpParser ();
7165 $ printer = new Standard ();
7266
0 commit comments