File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public function findSpecifiedType(
154154 foreach ($ haystackArrayTypes as $ haystackArrayType ) {
155155 if ($ haystackArrayType instanceof ConstantArrayType) {
156156 foreach ($ haystackArrayType ->getValueTypes () as $ i => $ haystackArrayValueType ) {
157- if (count ( $ haystackArrayValueType -> getFiniteTypes ()) > 1 || $ haystackArrayType ->isOptionalKey ($ i )) {
157+ if ($ haystackArrayType ->isOptionalKey ($ i )) {
158158 continue ;
159159 }
160160
@@ -163,7 +163,7 @@ public function findSpecifiedType(
163163 continue ;
164164 }
165165
166- foreach ($ haystackArrayValueType -> getConstantScalarTypes () as $ constantScalarType ) {
166+ foreach ($ haystackArrayValueConstantScalarTypes as $ constantScalarType ) {
167167 if ($ constantScalarType ->isSuperTypeOf ($ needleType )->yes ()) {
168168 continue 3 ;
169169 }
You can’t perform that action at this time.
0 commit comments