Skip to content

Commit

Permalink
Merge pull request #264 from theodorejb/patch-1
Browse files Browse the repository at this point in the history
Fix inconsistent switch case syntax
  • Loading branch information
clue authored Nov 19, 2024
2 parents 8a16464 + d3998c8 commit 5f80055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5f80055

Please sign in to comment.