From 3de98eb9367c3201cdf92b3953c580c7e1f0f2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 10 Jan 2024 19:52:55 +0100 Subject: [PATCH] fix phpstan (#27401) --- htdocs/core/class/ldap.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index 1610215668e..d7b774d3a40 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -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);