Skip to content

Commit a5e4bfa

Browse files
staabmondrejmirtes
authored andcommitted
MissingTypehintCheck: reduce duplicate work
1 parent 6bf918a commit a5e4bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Rules/MissingTypehintCheck.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function getIterableTypesWithMissingValueTypehint(Type $type): array
9191
}
9292
if ($type instanceof IntersectionType) {
9393
if ($type->isList()->yes()) {
94-
return $traverse($type->getIterableValueType());
94+
return $traverse($iterableValue);
9595
}
9696

9797
return $type;

0 commit comments

Comments
 (0)