8000 Bug fix. · josh-taylor/laravel-json-api@ce690dc · GitHub
[go: up one dir, main page]

Skip to content

Commit ce690dc

Browse files
committed
Bug fix.
1 parent 10db401 commit ce690dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Responses/ResponseFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function error(ErrorInterface $error, $statusCode = null, array $headers
163163
public function errors($errors, $statusCode = null, array $headers = [])
164164
{
165165
if (is_null($statusCode)) {
166-
$statusCode = Error::getErrorStatus($errors);
166+
$statusCode = Error::resolveHttpStatus($errors);
167167
}
168168

169169
return $this->responses->getErrorResponse($errors, $statusCode, $headers);

0 commit comments

Comments
 (0)
0