Skip to content

Commit 841872c

Browse files
authored
Switch condition order to support PHP 8
1 parent 5214cbe commit 841872c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ParameterResolver/TypeHintResolver.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ public function getParameters(
3030
// No type
3131
continue;
3232
}
33-
if ($parameterType->isBuiltin()) {
34-
// Primitive types are not supported
35-
continue;
36-
}
3733
if (! $parameterType instanceof ReflectionNamedType) {
3834
// Union types are not supported
3935
continue;
4036
}
37+
if ($parameterType->isBuiltin()) {
38+
// Primitive types are not supported
39+
continue;
40+
}
4141

4242
$parameterClass = $parameterType->getName();
4343
if ($parameterClass === 'self') {

0 commit comments

Comments
 (0)