Skip to content

Commit 71c7b04

Browse files
committed
test: add test for async visibility on static properties
See: https://wiki.php.net/rfc/static-avi
1 parent be882ba commit 71c7b04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/corpus/class.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ Asymmetric Property Visibility
10501050

10511051
class User {
10521052
public private(set) string $foo;
1053+
public private(set) static string $foo;
10531054
private(set) (Foo&Bar)|null $foo;
10541055
private (Foo&Bar)|null $foo;
10551056
public protected(set) string $foo;
@@ -1074,6 +1075,13 @@ class User {
10741075
(primitive_type)
10751076
(property_element
10761077
(variable_name (name))))
1078+
(property_declaration
1079+
(visibility_modifier)
1080+
(visibility_modifier (operation))
1081+
(static_modifier)
1082+
(primitive_type)
1083+
(property_element
1084+
(variable_name (name))))
10771085
(property_declaration
10781086
(visibility_modifier (operation))
10791087
(disjunctive_normal_form_type

0 commit comments

Comments
 (0)