Skip to content

Commit ce7178f

Browse files
[Ldap] fix deprecation on PHP 8.1
1 parent 7e45720 commit ce7178f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)