8000 [Ldap] fix deprecation on PHP 8.1 · symfony/symfony@9ce4531 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ce4531

Browse files
[Ldap] fix deprecation on PHP 8.1
1 parent f9a28fe commit 9ce4531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function rename(Entry $entry, $newRdn, $removeOldRdn = true)
105105
{
106106
$con = $this->getConnectionResource();
107107

108-
if (!@ldap_rename($con, $entry->getDn(), $newRdn, null, $removeOldRdn)) {
108+
if (!@ldap_rename($con, $entry->getDn(), $newRdn, '', $removeOldRdn)) {
109109
throw new LdapException(sprintf('Could not rename entry "%s" to "%s": ', $entry->getDn(), $newRdn).ldap_error($con));
110110
}
111111
}

0 commit comments

Comments
 (0)
0