We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d114c15 commit 4828684Copy full SHA for 4828684
1 file changed
src/Fortress/ServerSideValidator.php
@@ -86,7 +86,7 @@ public function data(): array
86
*
87
* @return mixed[]|bool
88
*/
89
- public function errors(string $field = null)
+ public function errors(string|null $field = null)
90
{
91
if ($field !== null) {
92
return isset($this->errors[$field]) ? $this->errors[$field] : false;
0 commit comments