From b434f4df59fa904cd6d64b989e82ee69a2cf7ebe Mon Sep 17 00:00:00 2001 From: Alexander Kim Date: Thu, 15 May 2025 10:14:12 -0400 Subject: [PATCH 1/2] fix: array shape in ProviderInterface With this syntax `request` and `resource_class` can be detected. Otherwise it just becomes an unsealed associative array. --- src/State/ProviderInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/State/ProviderInterface.php b/src/State/ProviderInterface.php index eadcaa05384..f863aff21c7 100644 --- a/src/State/ProviderInterface.php +++ b/src/State/ProviderInterface.php @@ -29,8 +29,8 @@ interface ProviderInterface /** * Provides data. * - * @param array $uriVariables - * @param array|array{request?: Request, resource_class?: string} $context + * @param array $uriVariables + * @param array{request?: Request, resource_class?: string, ... array} $context * * @return T|PartialPaginatorInterface|iterable|null */ From 421ba7574e1f5921761d0b11535cfcee0aae6cb5 Mon Sep 17 00:00:00 2001 From: Alexander Kim Date: Thu, 15 May 2025 10:23:36 -0400 Subject: [PATCH 2/2] fix: extra space --- src/State/ProviderInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/State/ProviderInterface.php b/src/State/ProviderInterface.php index f863aff21c7..544b7ec99dd 100644 --- a/src/State/ProviderInterface.php +++ b/src/State/ProviderInterface.php @@ -30,7 +30,7 @@ interface ProviderInterface * Provides data. * * @param array $uriVariables - * @param array{request?: Request, resource_class?: string, ... array} $context + * @param array{request?: Request, resource_class?: string, ...array} $context * * @return T|PartialPaginatorInterface|iterable|null */