diff --git a/src/functions.php b/src/functions.php index 2177dc23..d4bab05c 100644 --- a/src/functions.php +++ b/src/functions.php @@ -366,7 +366,7 @@ function _checkTypehint(callable $callback, $object) break; case $type instanceof \ReflectionIntersectionType: $isTypeUnion = false; - case $type instanceof \ReflectionUnionType; + case $type instanceof \ReflectionUnionType: $types = $type->getTypes(); break; default: