Skip to content

Commit 39131ef

Browse files
fain182claude
andcommitted
Skip test_it_can_parse_enum on PHP < 8.1
The test uses a real autoloadable enum fixture. On PHP 8.0, loading the file via the autoloader causes a ParseError because enums are not supported. Marking it as @requires PHP 8.1 makes it skip gracefully on older runtimes. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent dfc4e5a commit 39131ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Unit/Analyzer/FileParser/CanParseEnumsTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
class CanParseEnumsTest extends TestCase
1414
{
15+
/**
16+
* @requires PHP 8.1
17+
*/
1518
public function test_it_can_parse_enum(): void
1619
{
1720
$code = file_get_contents(__DIR__.'/Fixtures/SampleEnum.php');

0 commit comments

Comments
 (0)