Fix php8 warning
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2023-03-09 02:26:04 +01:00
parent 8069e2b4dd
commit 1ba60a455f
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class SearchAction
public function asController(ActionRequest $request): AnonymousResourceCollection
{
if ($request->input('minLength') !== null && strlen($request->input('search')) < $request->input('minLength')) {
if (null !== $request->input('minLength') && strlen($request->input('search', '')) < $request->input('minLength')) {
return MemberResource::collection($this->empty());
}