From aee7d57a8562ff46b0e3f445bee4b74049462d28 Mon Sep 17 00:00:00 2001 From: Yoshix Date: Wed, 6 Mar 2024 14:00:29 +0100 Subject: [PATCH] Use template parameter in return type. --- Event/ControllerArgumentsEvent.php | 8 ++++---- Event/ControllerEvent.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Event/ControllerArgumentsEvent.php b/Event/ControllerArgumentsEvent.php index 4c804ccf19..49ce0f11e4 100644 --- a/Event/ControllerArgumentsEvent.php +++ b/Event/ControllerArgumentsEvent.php @@ -94,13 +94,13 @@ public function getNamedArguments(): array } /** - * @template T of class-string|null + * @template T of object * - * @param T $className + * @param class-string|null $className * - * @return array>|list + * @return array>|list * - * @psalm-return (T is null ? array> : list) + * @psalm-return (T is null ? array> : list) */ public function getAttributes(?string $className = null): array { diff --git a/Event/ControllerEvent.php b/Event/ControllerEvent.php index aa0999d9e9..3dade73548 100644 --- a/Event/ControllerEvent.php +++ b/Event/ControllerEvent.php @@ -79,13 +79,13 @@ public function setController(callable $controller, ?array $attributes = null): } /** - * @template T of class-string|null + * @template T of object * - * @param T $className + * @param class-string|null $className * - * @return array>|list + * @return array>|list * - * @psalm-return (T is null ? array> : list) + * @psalm-return (T is null ? array> : list) */ public function getAttributes(?string $className = null): array {