Skip to content

Commit 3611bfe

Browse files
committed
Fix deprecation messages
1 parent 7db2c7d commit 3611bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DataCollector/SecurityDataCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function collect(Request $request, Response $response, \Throwable $except
100100
$impersonatorUser = null;
101101
if ($token instanceof SwitchUserToken) {
102102
$originalToken = $token->getOriginalToken();
103-
// @deprecated since 5.3, change to $originalToken->getUserIdentifier() in 6.0
103+
// @deprecated since Symfony 5.3, change to $originalToken->getUserIdentifier() in 6.0
104104
$impersonatorUser = method_exists($originalToken, 'getUserIdentifier') ? $originalToken->getUserIdentifier() : $originalToken->getUsername();
105105
}
106106

@@ -130,7 +130,7 @@ public function collect(Request $request, Response $response, \Throwable $except
130130
'token' => $token,
131131
'token_class' => $this->hasVarDumper ? new ClassStub(\get_class($token)) : \get_class($token),
132132
'logout_url' => $logoutUrl,
133-
// @deprecated since 5.3, change to $token->getUserIdentifier() in 6.0
133+
// @deprecated since Symfony 5.3, change to $token->getUserIdentifier() in 6.0
134134
'user' => method_exists($token, 'getUserIdentifier') ? $token->getUserIdentifier() : $token->getUsername(),
135135
'roles' => $assignedRoles,
136136
'inherited_roles' => array_unique($inheritedRoles),

0 commit comments

Comments
 (0)