Skip to content

Commit b26b48f

Browse files
authored
Merge pull request #268 from cakephp/types
Add missing types.
2 parents 8184295 + fd60beb commit b26b48f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: src/Policy/BeforeScopeInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ interface BeforeScopeInterface
3535
* @param string $action The action/operation being performed.
3636
* @return mixed
3737
*/
38-
public function beforeScope(?IdentityInterface $identity, $resource, string $action);
38+
public function beforeScope(?IdentityInterface $identity, mixed $resource, string $action): mixed;
3939
}

Diff for: tests/TestCase/AuthorizationServiceTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
use TestApp\Model\Table\ArticlesTable;
3232
use TestApp\Policy\ArticlePolicy;
3333
use TestApp\Policy\MagicCallPolicy;
34-
use TypeError;
3534

3635
class AuthorizationServiceTest extends TestCase
3736
{

0 commit comments

Comments
 (0)