php8.1: added final modifier for constants in class (#15)

This case is already covered by the existing grammar, so no changes are required.
This commit is contained in:
Makhnev Petr 2021-07-31 22:20:36 +03:00 committed by GitHub
parent 689cca66c4
commit b256331d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,3 +74,13 @@ enum A implements B, C, D {
} }
`) `)
} }
func TestFinalConstantPHP81(t *testing.T) {
tester.NewParserPrintTestSuite(t).UsePHP8().Run(`<?php
class Foo {
public const X = "foo";
final public const X = "foo";
final private const X = "foo";
}
`)
}