@@ -894,7 +894,7 @@ fully_dereferencable:
894
894
| dereferencable_scalar { $$ = $1 ; }
895
895
;
896
896
897
- array_dereferencable :
897
+ array_object_dereferencable :
898
898
fully_dereferencable { $$ = $1 ; }
899
899
| constant { $$ = $1 ; }
900
900
| class_constant { $$ = $1 ; }
@@ -908,17 +908,18 @@ callable_expr:
908
908
909
909
callable_variable :
910
910
simple_variable { $$ = Expr\Variable[$1 ]; }
911
- | array_dereferencable ' [' optional_expr ' ]' { $$ = Expr\ArrayDimFetch[$1 , $3 ]; }
912
- | array_dereferencable ' {' expr ' }' { $$ = Expr\ArrayDimFetch[$1 , $3 ]; }
911
+ | array_object_dereferencable ' [' optional_expr ' ]' { $$ = Expr\ArrayDimFetch[$1 , $3 ]; }
912
+ | array_object_dereferencable ' {' expr ' }' { $$ = Expr\ArrayDimFetch[$1 , $3 ]; }
913
913
| function_call { $$ = $1 ; }
914
- | fully_dereferencable T_OBJECT_OPERATOR property_name argument_list
914
+ | array_object_dereferencable T_OBJECT_OPERATOR property_name argument_list
915
915
{ $$ = Expr\MethodCall[$1 , $3 , $4 ]; }
916
916
;
917
917
918
918
variable :
919
919
callable_variable { $$ = $1 ; }
920
920
| static_member { $$ = $1 ; }
921
- | fully_dereferencable T_OBJECT_OPERATOR property_name { $$ = Expr\PropertyFetch[$1 , $3 ]; }
921
+ | array_object_dereferencable T_OBJECT_OPERATOR property_name
922
+ { $$ = Expr\PropertyFetch[$1 , $3 ]; }
922
923
;
923
924
924
925
simple_variable :
0 commit comments