Skip to content

Commit

Permalink
Fix PHP 8.4 Deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Nov 30, 2024
1 parent d114c15 commit 4828684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fortress/ServerSideValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4828684

Please sign in to comment.