Skip to content

Commit 8999a13

Browse files
committed
Make class constants fully dereferencable
1 parent c1eaa0d commit 8999a13

File tree

4 files changed

+472
-314
lines changed

4 files changed

+472
-314
lines changed

grammar/php7.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,12 +892,12 @@ fully_dereferencable:
892892
variable { $$ = $1; }
893893
| '(' expr ')' { $$ = $2; }
894894
| dereferencable_scalar { $$ = $1; }
895+
| class_constant { $$ = $1; }
895896
;
896897

897898
array_object_dereferencable:
898899
fully_dereferencable { $$ = $1; }
899900
| constant { $$ = $1; }
900-
| class_constant { $$ = $1; }
901901
;
902902

903903
callable_expr:

0 commit comments

Comments
 (0)