From f1845edb0eaa0fd3d6ccc22eb26a3e1a87c94d80 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Thu, 20 May 2021 14:18:24 +1000 Subject: [PATCH] fix visibility --- readme.md | 4 ++-- src/HasParameters.php | 4 +--- tests/HasParametersTest.php | 4 ++-- tests/Middleware/Aliased.php | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index a5e93fd..be6604b 100644 --- a/readme.md +++ b/readme.md @@ -169,7 +169,7 @@ class ThrottleRequests // } - protected static function parameterAliasMap(): array + private static function parameterAliasMap(): array { return [ 'limiter' => 'maxAttempts', @@ -195,7 +195,7 @@ Ensures all required parameters (those without default values) have been provide - Ensures all aliases specified reference an existing parameter. - Provided aliases don't reference the same parameter. -- An original parameter key and an alias have not both be provided. +- An original parameter key and an alias have not both been provided. ## Middleware::in() diff --git a/src/HasParameters.php b/src/HasParameters.php index a412676..50acafc 100644 --- a/src/HasParameters.php +++ b/src/HasParameters.php @@ -63,11 +63,9 @@ public static function in($arguments): string } /** - * @psalm-suppress ProtectedVisibility - * * @return array */ - protected static function parameterAliasMap(): array + private static function parameterAliasMap(): array { return [ // 'alias' => 'parameter', diff --git a/tests/HasParametersTest.php b/tests/HasParametersTest.php index 12109b1..0fc74d5 100644 --- a/tests/HasParametersTest.php +++ b/tests/HasParametersTest.php @@ -308,7 +308,7 @@ public function handle(Request $request, Closure $next, string $original, string // } - protected static function parameterAliasMap(): array + private static function parameterAliasMap(): array { return [ 'firstAlias' => 'original', @@ -337,7 +337,7 @@ public function handle(Request $request, Closure $next, string $original): void // } - protected static function parameterAliasMap(): array + private static function parameterAliasMap(): array { return [ 'firstAlias' => 'doesntExist', diff --git a/tests/Middleware/Aliased.php b/tests/Middleware/Aliased.php index ad7d4f3..f8ebed3 100644 --- a/tests/Middleware/Aliased.php +++ b/tests/Middleware/Aliased.php @@ -17,7 +17,7 @@ public function handle(Request $request, Closure $next, string $originalFirst, s // } - protected static function parameterAliasMap(): array + private static function parameterAliasMap(): array { return [ 'aliasedFirst' => 'originalFirst',