fix phpstan (#27401)

This commit is contained in:
Frédéric FRANCE 2024-01-10 19:52:55 +01:00 committed by GitHub
parent 2e0c86ad29
commit 3de98eb936
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -523,7 +523,7 @@ class Ldap
*
* @param string $dn DN entry key
* @param array $info Attributes array
* @param User $user Objet user that create
* @param User $user Object user that create
* @return int Return integer <0 if KO, >0 if OK
*/
public function add($dn, $info, $user)
@ -571,7 +571,7 @@ class Ldap
*
* @param string $dn DN entry key
* @param array $info Attributes array
* @param User $user Objet user that modify
* @param User $user Object user that modify
* @return int Return integer <0 if KO, >0 if OK
*/
public function modify($dn, $info, $user)
@ -628,8 +628,8 @@ class Ldap
* @param string $dn Old DN entry key (uid=qqq,ou=xxx,dc=aaa,dc=bbb) (before update)
* @param string $newrdn New RDN entry key (uid=qqq)
* @param string $newparent New parent (ou=xxx,dc=aaa,dc=bbb)
* @param User $user Objet user that modify
* @param bool $deleteoldrdn If true the old RDN value(s) is removed, else the old RDN value(s) is retained as non-distinguished values of the entry.
* @param User $user Objet user that modify
* @param bool $deleteoldrdn If true the old RDN value(s) is removed, else the old RDN value(s) is retained as non-distinguished values of the entry.
* @return int Return integer <0 if KO, >0 if OK
*/
public function rename($dn, $newrdn, $newparent, $user, $deleteoldrdn = true)
@ -670,13 +670,13 @@ class Ldap
*
* @param string $dn DN entry key
* @param array $info Attributes array
* @param User $user Objet user that update
* @param User $user Object user that update
* @param string $olddn Old DN entry key (before update)
* @param string $newrdn New RDN entry key (uid=qqq) (for ldap_rename)
* @param string $newparent New parent (ou=xxx,dc=aaa,dc=bbb) (for ldap_rename)
* @return int Return integer <0 if KO, >0 if OK
*/
public function update($dn, $info, $user, $olddn, $newrdn = false, $newparent = false)
public function update($dn, $info, $user, $olddn, $newrdn = '', $newparent = '')
{
dol_syslog(get_class($this)."::update dn=".$dn." olddn=".$olddn);