Skip to content

Commit cdcabd9

Browse files
authored
Merge pull request #269 from WyriHaximus-labs/2.x-fix-inconsistent-switch-case-syntax
[2.x] Improve PHP 8.5+ support by avoiding deprecated switch case syntax
2 parents 1a84609 + 501b4aa commit cdcabd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ function _checkTypehint(callable $callback, $object)
366366
break;
367367
case $type instanceof \ReflectionIntersectionType:
368368
$isTypeUnion = false;
369-
case $type instanceof \ReflectionUnionType;
369+
case $type instanceof \ReflectionUnionType:
370370
$types = $type->getTypes();
371371
break;
372372
default:

0 commit comments

Comments
 (0)