Skip to content

Commit b778acd

Browse files
committed
add response type to addError
1 parent ee80f5b commit b778acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Responses/Laravel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static function response(): self
1717
return self::get();
1818
}
1919

20-
public function addError(array $error)
20+
public function addError(array $error): self
2121
{
2222
$this->add(Error::fromArray($error));
2323

0 commit comments

Comments
 (0)