Skip to content

Commit 7f0c099

Browse files
committed
Fix JsonApiErrorsException bug
1 parent ecff095 commit 7f0c099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exception/JsonApiErrorsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function __construct(public array $errors)
1010
{
1111
parent::__construct('Multiple errors occurred');
1212

13-
foreach ($this->errors as $error) {
13+
foreach ($this->errors as &$error) {
1414
if (!$error instanceof ErrorProvider) {
1515
$error = new InternalServerErrorException();
1616
}

0 commit comments

Comments
 (0)