Add void after some methods.

This commit is contained in:
James Cole
2023-12-21 04:59:23 +01:00
parent bc50d25468
commit 655d03bec4
14 changed files with 19 additions and 16 deletions

View File

@@ -74,7 +74,7 @@ class Request 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)) {