Skip to content

Commit

Permalink
fix some php-ldap function signatures (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Mar 29, 2024
1 parent 93f0ba1 commit 7bdb9a5
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions src/Ltb/PhpLDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,34 @@ public static function ldap_count_entries($ldap, $result)
return ldap_count_entries($ldap, $result);
}

public static function ldap_modify_batch($ldap, $dn, $modifications)
public static function ldap_modify_batch(...$args)
{
return ldap_modify_batch($ldap, $dn, $modifications);
return ldap_modify_batch(...$args);
}

public static function ldap_exop_passwd($ldap, $dn, $oldpassword, $password, $ctrls)
public static function ldap_exop_passwd(...$args)
{
return ldap_exop_passwd($ldap, $dn, $oldpassword, $password, $ctrls);
return ldap_exop_passwd(...$args);
}

public static function ldap_mod_replace_ext($ldap, $dn, $userdata, $ctrls)
public static function ldap_mod_replace_ext(...$args)
{
return ldap_mod_replace_ext($ldap, $dn, $userdata, $ctrls);
return ldap_mod_replace_ext(...$args);
}

public static function ldap_parse_result($ldap, $ppolicy_replace, $error_code, $matcheddn, $error_msg, $referrals, $ctrls)
public static function ldap_parse_result(...$args)
{
return ldap_parse_result($ldap, $ppolicy_replace, $error_code, $matcheddn, $error_msg, $referrals, $ctrls);
return ldap_parse_result(...$args);
}

public static function ldap_mod_replace($ldap, $dn, $userdata)
public static function ldap_mod_replace(...$args)
{
return ldap_mod_replace($ldap, $dn, $userdata);
return ldap_mod_replace(...$args);
}

public static function ldap_first_entry($ldap, $entry, $attribute)
{
return ldap_first_entry($ldap, $entry, $attribute);
}

}
Expand Down

0 comments on commit 7bdb9a5

Please sign in to comment.