Skip to content

Commit

Permalink
Fix inconsistent switch case syntax
Browse files Browse the repository at this point in the history
This must have been a typo, since it's the only instance where the non-standard syntax is used.
  • Loading branch information
theodorejb authored Nov 11, 2024
1 parent 8a16464 commit d3998c8
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 d3998c8

Please sign in to comment.