Skip to content

Commit c18f358

Browse files
alamiraultfabpot
authored andcommitted
[Security][Serializer] Add missing args to trigger_deprecation
1 parent 64e9926 commit c18f358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firewall/AccessListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function authenticate(RequestEvent $event)
114114

115115
// @deprecated since Symfony 5.4
116116
if (method_exists($token, 'isAuthenticated') && !$token->isAuthenticated(false)) {
117-
trigger_deprecation('symfony/core', '5.4', 'Returning false from "%s()" is deprecated, return null from "getUser()" instead.');
117+
trigger_deprecation('symfony/core', '5.4', 'Returning false from "%s::isAuthenticated()" is deprecated, return null from "getUser()" instead.', get_debug_type($token));
118118

119119
if ($this->authManager) {
120120
$token = $this->authManager->authenticate($token);

0 commit comments

Comments
 (0)