diff --git a/internal/php8/parser_php8_2_test.go b/internal/php8/parser_php8_2_test.go index f0076ca..3e24255 100644 --- a/internal/php8/parser_php8_2_test.go +++ b/internal/php8/parser_php8_2_test.go @@ -399,3 +399,44 @@ class Bar { suite.Run() } + +func TestConstantsInTraits(t *testing.T) { + suite := tester.NewParserDumpTestSuite(t) + suite.UsePHP8() + suite.Code = `