Skip to content

Commit 37d2038

Browse files
committed
Fix deprecation messages
1 parent 46cf560 commit 37d2038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Security/CheckLdapCredentialsListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function onCheckPassport(CheckPassportEvent $event)
8383
} else {
8484
throw new LogicException('Using the "query_string" config without using a "search_dn" and a "search_password" is not supported.');
8585
}
86-
// @deprecated since 5.3, change to $user->getUserIdentifier() in 6.0
86+
// @deprecated since Symfony 5.3, change to $user->getUserIdentifier() in 6.0
8787
$username = $ldap->escape(method_exists($user, 'getUserIdentifier') ? $user->getUserIdentifier() : $user->getUsername(), '', LdapInterface::ESCAPE_FILTER);
8888
$query = str_replace('{username}', $username, $ldapBadge->getQueryString());
8989
$result = $ldap->query($ldapBadge->getDnString(), $query)->execute();
@@ -93,7 +93,7 @@ public function onCheckPassport(CheckPassportEvent $event)
9393

9494
$dn = $result[0]->getDn();
9595
} else {
96-
// @deprecated since 5.3, change to $user->getUserIdentifier() in 6.0
96+
// @deprecated since Symfony 5.3, change to $user->getUserIdentifier() in 6.0
9797
$username = $ldap->escape(method_exists($user, 'getUserIdentifier') ? $user->getUserIdentifier() : $user->getUsername(), '', LdapInterface::ESCAPE_DN);
9898
$dn = str_replace('{username}', $username, $ldapBadge->getDnString());
9999
}

0 commit comments

Comments
 (0)