diff --git a/composer.json b/composer.json index 7c04f5e..621d618 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "phpmailer/phpmailer": "^6.5.0" }, "require-dev": { - "phpunit/phpunit": "*", - "mockery/mockery": "*" + "phpunit/phpunit": ">=8", + "mockery/mockery": ">=1.4" } } diff --git a/phpunit.xml b/phpunit.xml index 0324c62..685334a 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -5,7 +5,6 @@ tests/Ltb - src diff --git a/src/Ltb/Ldap.php b/src/Ltb/Ldap.php index 0c86b0c..9741147 100644 --- a/src/Ltb/Ldap.php +++ b/src/Ltb/Ldap.php @@ -236,7 +236,7 @@ function sorted_search($ldap_base, $ldap_filter, $attributes, $sortby, $ldap_siz * @param string $pwdattribute the Attribute that contains the password * @return string|false the first value of the password taken from ldap_get_values */ - function get_password_value($dn, $pwdattribute): string|false { + function get_password_value($dn, $pwdattribute) { $search_userpassword = \Ltb\PhpLDAP::ldap_read($this->ldap, $dn, "(objectClass=*)", array($pwdattribute)); if ($search_userpassword) { $password_values = \Ltb\PhpLDAP::ldap_get_values($this->ldap, \Ltb\PhpLDAP::ldap_first_entry($this->ldap, $search_userpassword), $pwdattribute);