Fix php8 warning
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8069e2b4dd
commit
1ba60a455f
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue