Lint
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
54cf187ff5
commit
58d7c5671f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue