From 77add404b1c0c4b4eee3ecec674c0911524b15a4 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 8 Feb 2022 14:32:23 +0100 Subject: Remove mixed type not available in PHP 7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/Access.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 846189594ad..f97925aeb04 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1540,12 +1540,12 @@ class Access extends LDAPUtility { * string into single words * * @param string $search the search term - * @param string[] $searchAttributes needs to have at least two attributes, + * @param string[]|null|'' $searchAttributes needs to have at least two attributes, * otherwise it does not make sense :) * @return string the final filter part to use in LDAP searches * @throws DomainException */ - private function getAdvancedFilterPartForSearch(string $search, mixed $searchAttributes): string { + private function getAdvancedFilterPartForSearch(string $search, $searchAttributes): string { if (!is_array($searchAttributes) || count($searchAttributes) < 2) { throw new DomainException('searchAttributes must be an array with at least two string'); } @@ -1572,7 +1572,7 @@ class Access extends LDAPUtility { * did not define search attributes. Typically the display name attribute. * @return string the final filter part to use in LDAP searches */ - private function getFilterPartForSearch(string $search, mixed $searchAttributes, string $fallbackAttribute): string { + private function getFilterPartForSearch(string $search, $searchAttributes, string $fallbackAttribute): string { $filter = []; $haveMultiSearchAttributes = (is_array($searchAttributes) && count($searchAttributes) > 0); if ($haveMultiSearchAttributes && strpos(trim($search), ' ') !== false) { -- cgit v1.2.3