Skip to content

Commit

Permalink
Prevent crash when iterator class does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed May 8, 2019
1 parent 419d1da commit b83f540
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -585,6 +585,7 @@ public static function handleIterable(
$value_type_part = $array_atomic_type->type_params[1]; $value_type_part = $array_atomic_type->type_params[1];
} else { } else {
if ($array_atomic_type instanceof Type\Atomic\TNamedObject if ($array_atomic_type instanceof Type\Atomic\TNamedObject
&& $codebase->classExists($array_atomic_type->value)
&& $codebase->classImplements( && $codebase->classImplements(
$array_atomic_type->value, $array_atomic_type->value,
'Traversable' 'Traversable'
Expand Down

0 comments on commit b83f540

Please sign in to comment.