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

This commit is contained in:
philipp lang 2024-03-09 00:57:25 +01:00
parent 54cf187ff5
commit 58d7c5671f
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class MemberRequest extends FormRequest
private function namiIfStoring(Validator $validator, string $attribute, string $rules): void
{
$request = request();
/** @var Member */
/** @var ?Member */
$member = request()->route('member');
$when = fn () => true === $request->input('has_nami') && ($member === null || !$member->has_nami);
$validator->sometimes($attribute, $rules, $when);