From 1ba60a455f71c4a9632700baf2ec48485949ea23 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 9 Mar 2023 02:26:04 +0100 Subject: [PATCH] Fix php8 warning --- app/Member/Actions/SearchAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Member/Actions/SearchAction.php b/app/Member/Actions/SearchAction.php index 5af9cedb..7e1bfeda 100644 --- a/app/Member/Actions/SearchAction.php +++ b/app/Member/Actions/SearchAction.php @@ -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()); }