File tree 2 files changed +12
-8
lines changed
Analyzer/Statements/Expression/Fetch
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -2076,11 +2076,13 @@ private static function checkArrayOffsetType(
2076
2076
);
2077
2077
2078
2078
if ($ expanded instanceof Atomic) {
2079
- $ has_valid_absolute_offset = self ::checkArrayOffsetType (
2080
- $ offset_type ,
2081
- [$ expanded ],
2082
- $ codebase
2083
- );
2079
+ if (!$ expanded instanceof Atomic \TClassConstant) {
2080
+ $ has_valid_absolute_offset = self ::checkArrayOffsetType (
2081
+ $ offset_type ,
2082
+ [$ expanded ],
2083
+ $ codebase
2084
+ );
2085
+ }
2084
2086
} else {
2085
2087
$ has_valid_absolute_offset = self ::checkArrayOffsetType (
2086
2088
$ offset_type ,
Original file line number Diff line number Diff line change @@ -81,12 +81,14 @@ public static function isContainedBy(
81
81
);
82
82
83
83
if ($ expanded instanceof Atomic) {
84
- $ input_atomic_types [] = $ expanded ;
84
+ if (!$ expanded instanceof Atomic \TClassConstant) {
85
+ $ input_atomic_types [] = $ expanded ;
86
+ continue ;
87
+ }
85
88
} else {
86
89
$ input_atomic_types = array_merge ($ expanded , $ input_atomic_types );
90
+ continue ;
87
91
}
88
-
89
- continue ;
90
92
}
91
93
92
94
$ type_match_found = false ;
You can’t perform that action at this time.
0 commit comments