File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -268,19 +268,12 @@ public function specifyTypesInCondition(
268
268
if ($ argType instanceof UnionType) {
269
269
$ countableInterface = new ObjectType (Countable::class);
270
270
foreach ($ argType ->getTypes () as $ innerType ) {
271
- if (
272
- $ innerType ->isArray ()->yes ()
273
- ) {
271
+ if ($ innerType ->isArray ()->yes ()) {
274
272
$ innerType = TypeCombinator::intersect (new NonEmptyArrayType (), $ innerType );
275
- if ($ innerType ->isList ()->yes ()) {
276
- $ innerType = AccessoryArrayListType::intersectWith ($ innerType );
277
- }
278
273
$ countables [] = $ innerType ;
279
274
}
280
275
281
- if (
282
- !$ countableInterface ->isSuperTypeOf ($ innerType )->yes ()
283
- ) {
276
+ if (!$ countableInterface ->isSuperTypeOf ($ innerType )->yes ()) {
284
277
continue ;
285
278
}
286
279
You can’t perform that action at this time.
0 commit comments