File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public function isSubTypeOf(Type $otherType): IsSuperTypeOfResult
111
111
112
112
public function isAcceptedBy (Type $ acceptingType , bool $ strictTypes ): AcceptsResult
113
113
{
114
- if ($ acceptingType instanceof NonEmptyArrayType ) {
114
+ if ($ acceptingType-> isArray ()-> yes () && $ acceptingType -> isIterableAtLeastOnce ()-> yes () ) {
115
115
return AcceptsResult::createYes ();
116
116
}
117
117
return $ this ->isSubTypeOf ($ acceptingType )->toAcceptsResult ();
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public function isSubTypeOf(Type $otherType): IsSuperTypeOfResult
122
122
123
123
public function isAcceptedBy (Type $ acceptingType , bool $ strictTypes ): AcceptsResult
124
124
{
125
- if ($ acceptingType instanceof NonEmptyArrayType ) {
125
+ if ($ acceptingType-> isArray ()-> yes () && $ acceptingType -> isIterableAtLeastOnce ()-> yes () ) {
126
126
return AcceptsResult::createYes ();
127
127
}
128
128
You can’t perform that action at this time.
0 commit comments