From b256331d907e931a5e4f7f70d846eea301a5418f Mon Sep 17 00:00:00 2001 From: Makhnev Petr <51853996+i582@users.noreply.github.com> Date: Sat, 31 Jul 2021 22:20:36 +0300 Subject: [PATCH] php8.1: added final modifier for constants in class (#15) This case is already covered by the existing grammar, so no changes are required. --- pkg/visitor/printer/printer_php8_1_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/visitor/printer/printer_php8_1_test.go b/pkg/visitor/printer/printer_php8_1_test.go index a43fadf..4b8034e 100644 --- a/pkg/visitor/printer/printer_php8_1_test.go +++ b/pkg/visitor/printer/printer_php8_1_test.go @@ -74,3 +74,13 @@ enum A implements B, C, D { } `) } + +func TestFinalConstantPHP81(t *testing.T) { + tester.NewParserPrintTestSuite(t).UsePHP8().Run(`