From b600a613ac696f108f0ffdc6aec2f22c6ccd12ef Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 12 Nov 2023 19:50:42 +0530 Subject: [PATCH 1/2] Add missing types. --- src/Policy/BeforeScopeInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Policy/BeforeScopeInterface.php b/src/Policy/BeforeScopeInterface.php index acf61a2..4483195 100644 --- a/src/Policy/BeforeScopeInterface.php +++ b/src/Policy/BeforeScopeInterface.php @@ -35,5 +35,5 @@ interface BeforeScopeInterface * @param string $action The action/operation being performed. * @return mixed */ - public function beforeScope(?IdentityInterface $identity, $resource, string $action); + public function beforeScope(?IdentityInterface $identity, mixed $resource, string $action): mixed; } From fd60bebceb742e3ec40c78ff2f67fcd0f64e3e0a Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 12 Nov 2023 19:52:52 +0530 Subject: [PATCH 2/2] Fix CS error --- tests/TestCase/AuthorizationServiceTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/TestCase/AuthorizationServiceTest.php b/tests/TestCase/AuthorizationServiceTest.php index 68bab50..66f39be 100644 --- a/tests/TestCase/AuthorizationServiceTest.php +++ b/tests/TestCase/AuthorizationServiceTest.php @@ -31,7 +31,6 @@ use TestApp\Model\Table\ArticlesTable; use TestApp\Policy\ArticlePolicy; use TestApp\Policy\MagicCallPolicy; -use TypeError; class AuthorizationServiceTest extends TestCase {