This commit is contained in:
James Cole
2023-12-21 05:07:26 +01:00
parent 1f7ceb6df6
commit a445bc53cd
61 changed files with 165 additions and 163 deletions

View File

@@ -76,7 +76,7 @@ class UpdateRequest extends FormRequest
public function withValidator(Validator $validator): void
{
$validator->after(
static function (Validator $validator) {
static function (Validator $validator): void {
// validate start before end only if both are there.
$data = $validator->getData();
if (array_key_exists('start', $data) && array_key_exists('end', $data)) {