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:
parent
689cca66c4
commit
b256331d90
@ -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";
|
||||||
|
}
|
||||||
|
`)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user