Skip to content

Commit 588f78c

Browse files
committed
lazier
1 parent cd46553 commit 588f78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/TypeUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public static function findCallableType(Type $type): ?Type
176176
return $type;
177177
}
178178

179-
if ($type instanceof UnionType || $type instanceof IntersectionType) {
179+
if ($type instanceof UnionType) {
180180
foreach ($type->getTypes() as $innerType) {
181181
$callableType = self::findCallableType($innerType);
182182
if ($callableType !== null) {

0 commit comments

Comments
 (0)