From 501b4aa15121cd015d9f6f548cbda4c27bc16ced Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Wed, 13 Aug 2025 22:51:49 +0200 Subject: [PATCH] Fix inconsistent switch case syntax This builds on top of #264 porting that change to v2. --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: