Skip to content

Commit

Permalink
Fix deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 13, 2021
1 parent 7db2c7d commit 3611bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataCollector/SecurityDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function collect(Request $request, Response $response, \Throwable $except
$impersonatorUser = null;
if ($token instanceof SwitchUserToken) {
$originalToken = $token->getOriginalToken();
// @deprecated since 5.3, change to $originalToken->getUserIdentifier() in 6.0
// @deprecated since Symfony 5.3, change to $originalToken->getUserIdentifier() in 6.0
$impersonatorUser = method_exists($originalToken, 'getUserIdentifier') ? $originalToken->getUserIdentifier() : $originalToken->getUsername();
}

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

0 comments on commit 3611bfe

Please sign in to comment.