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; } 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 {