Skip to content

Commit ba6150f

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ParameterResolver/Container/TypeHintContainerResolver.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ public function getParameters(
4141
// No type
4242
continue;
4343
}
44-
if ($parameterType->isBuiltin()) {
45-
// Primitive types are not supported
46-
continue;
47-
}
4844
if (! $parameterType instanceof ReflectionNamedType) {
4945
// Union types are not supported
5046
continue;
5147
}
48+
if ($parameterType->isBuiltin()) {
49+
// Primitive types are not supported
50+
continue;
51+
}
5252

5353
$parameterClass = $parameterType->getName();
5454
if ($parameterClass === 'self') {

0 commit comments

Comments
 (0)