Lint
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-03-09 00:30:44 +01:00
parent 3567dc3620
commit 0575fe4e5c
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class MemberRequest extends FormRequest
$request = request();
/** @var Member */
$member = request()->route('member');
$when = fn () => true === $request->input('has_nami') && (!$member || !$member->has_nami);
$when = fn () => true === $request->input('has_nami') && ($member !== null || !$member->has_nami);
$validator->sometimes($attribute, $rules, $when);
}
}