Fix call on null object

This commit is contained in:
Bubka 2024-03-14 15:09:34 +01:00
parent 86e7601328
commit b56ee8b04f
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class SettingUpdateRequest extends FormRequest
]
];
if ($this->route()->parameter('settingName') == 'restrictList') {
if ($this->route()?->parameter('settingName') == 'restrictList') {
$rule['value'][] = new IsValideEmailList;
}