diff --git a/app/Search/SearchRunner.php b/app/Search/SearchRunner.php index 60d111d08..e3c12f7e5 100644 --- a/app/Search/SearchRunner.php +++ b/app/Search/SearchRunner.php @@ -294,7 +294,7 @@ class SearchRunner $query->where('name', '=', $tagParts['name']); } - if (is_numeric($tagParts['value']) && is_finite($tagParts['value']) && $tagParts['operator'] !== 'like') { + if (is_numeric($tagParts['value']) && is_finite(floatval($tagParts['value'])) && $tagParts['operator'] !== 'like') { // We have to do a raw sql query for this since otherwise PDO will quote the value and MySQL will // search the value as a string which prevents being able to do number-based operations // on the tag values. We ensure it has a numeric value and then cast it just to be sure. diff --git a/app/Users/UserRepo.php b/app/Users/UserRepo.php index e8b3c27e0..586fecdc5 100644 --- a/app/Users/UserRepo.php +++ b/app/Users/UserRepo.php @@ -166,7 +166,7 @@ class UserRepo /** * Update the given user with the given data. * - * @param array{name: ?string, email: ?string, external_auth_id: ?string, password: ?string, roles: ?array, language: ?string} $data + * @param array{name: ?string, email: ?string, external_auth_id: ?string, password: ?string, roles: ?array, language: ?string, display_mode: ?string} $data * * @throws UserUpdateException */ diff --git a/app/View/ViewBlockPreferences.php b/app/View/ViewBlockPreferences.php index 247c3b16c..67e530188 100644 --- a/app/View/ViewBlockPreferences.php +++ b/app/View/ViewBlockPreferences.php @@ -42,6 +42,7 @@ class ViewBlockPreferences } $validatedLayoutData[$position] = array_filter($blockIds, function ($id) use ($validIds) { + // @phpstan-ignore function.alreadyNarrowedType return is_string($id) && in_array($id, $validIds); }); }