Skip to content

Commit 32ffcb0

Browse files
alamiraultfabpot
authored andcommitted
[Security][Serializer] Add missing args to trigger_deprecation
1 parent dd56d4f commit 32ffcb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authorization/AuthorizationChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ final public function isGranted($attribute, $subject = null): bool
8080
// @deprecated since Symfony 5.4
8181
if ($this->alwaysAuthenticate || !$authenticated = $token->isAuthenticated(false)) {
8282
if (!($authenticated ?? true)) {
83-
trigger_deprecation('symfony/core', '5.4', 'Returning false from "%s()" is deprecated, return null from "getUser()" instead.');
83+
trigger_deprecation('symfony/core', '5.4', 'Returning false from "%s::isAuthenticated()" is deprecated, return null from "getUser()" instead.', get_debug_type($token));
8484
}
8585
$this->tokenStorage->setToken($token = $this->authenticationManager->authenticate($token));
8686
}

0 commit comments

Comments
 (0)