summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-02-08 14:32:23 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-02-08 14:32:23 +0100
commit77add404b1c0c4b4eee3ecec674c0911524b15a4 (patch)
treeb6315e8f0dfe6e700b38b0b305049b53aea0ba33 /apps
parent5f65d5a58d6024e352ad16e2e0d38e7df68bab6f (diff)
downloadnextcloud-server-77add404b1c0c4b4eee3ecec674c0911524b15a4.tar.gz
nextcloud-server-77add404b1c0c4b4eee3ecec674c0911524b15a4.zip
Remove mixed type not available in PHP 7.4
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Access.php6
1 files changed, 3 insertions, 3 deletions
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) {