From d3998c8a5d3cff0b39b2f332da550e996f35b947 Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Mon, 11 Nov 2024 08:07:34 -0600 Subject: [PATCH] Fix inconsistent switch case syntax This must have been a typo, since it's the only instance where the non-standard syntax is used. --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index 2aab877..214aad6 100644 --- a/src/functions.php +++ b/src/functions.php @@ -297,7 +297,7 @@ function _checkTypehint(callable $callback, \Throwable $reason): bool break; case $type instanceof \ReflectionIntersectionType: $isTypeUnion = false; - case $type instanceof \ReflectionUnionType; + case $type instanceof \ReflectionUnionType: $types = $type->getTypes(); break; default: