diff --git a/src/ParameterDefinition.php b/src/ParameterDefinition.php index 70e8bca..d71c4e6 100644 --- a/src/ParameterDefinition.php +++ b/src/ParameterDefinition.php @@ -47,7 +47,7 @@ public function hasValue(): bool public function resolve(ContainerInterface $container): mixed { - /** @var ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null $type */ + /** @var ReflectionIntersectionType|ReflectionNamedType|ReflectionUnionType|null $type */ $type = $this->parameter->getType(); if ($type instanceof ReflectionUnionType) { @@ -147,7 +147,7 @@ private function resolveUnionType(ContainerInterface $container): mixed $parameterType = $this->parameter->getType(); /** - * @var ReflectionNamedType[]|ReflectionIntersectionType[] $types + * @var ReflectionIntersectionType[]|ReflectionNamedType[] $types */ $types = $parameterType->getTypes(); $class = implode('|', $types);