From 4828684f9f6ffd327c18c81caf2a88b111811c17 Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Fri, 29 Nov 2024 19:28:41 -0500 Subject: [PATCH] Fix PHP 8.4 Deprecation --- src/Fortress/ServerSideValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fortress/ServerSideValidator.php b/src/Fortress/ServerSideValidator.php index bc1458a..e77f44e 100644 --- a/src/Fortress/ServerSideValidator.php +++ b/src/Fortress/ServerSideValidator.php @@ -86,7 +86,7 @@ public function data(): array * * @return mixed[]|bool */ - public function errors(string $field = null) + public function errors(string|null $field = null) { if ($field !== null) { return isset($this->errors[$field]) ? $this->errors[$field] : false;