From b434f4df59fa904cd6d64b989e82ee69a2cf7ebe Mon Sep 17 00:00:00 2001 From: Alexander Kim Date: Thu, 15 May 2025 10:14:12 -0400 Subject: [PATCH 1/4] 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/4] 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 */ From 973c71211295e07f970bb6caf1ec7036c914e8ba Mon Sep 17 00:00:00 2001 From: Alexander Kim Date: Mon, 18 Aug 2025 18:28:45 -0400 Subject: [PATCH 3/4] fix: remove extraneous 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 544b7ec99dd..1fde6f2e4e3 100644 --- a/src/State/ProviderInterface.php +++ b/src/State/ProviderInterface.php @@ -29,8 +29,8 @@ interface ProviderInterface /** * Provides data. * - * @param array $uriVariables - * @param array{request?: Request, resource_class?: string, ...array} $context + * @param array $uriVariables + * @param array{request?: Request, resource_class?: string, ...} $context * * @return T|PartialPaginatorInterface|iterable|null */ From 1f00c16e62fc2cb89d428a040d986f08724fb24c Mon Sep 17 00:00:00 2001 From: Alexander Kim Date: Mon, 18 Aug 2025 22:40:25 -0400 Subject: [PATCH 4/4] style: fixed --- 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 1fde6f2e4e3..9d846bf61b4 100644 --- a/src/State/ProviderInterface.php +++ b/src/State/ProviderInterface.php @@ -29,8 +29,8 @@ interface ProviderInterface /** * Provides data. * - * @param array $uriVariables - * @param array{request?: Request, resource_class?: string, ...} $context + * @param array $uriVariables + * @param array{request?: Request, resource_class?: string, ...} $context * * @return T|PartialPaginatorInterface|iterable|null */