Skip to content

Commit b788c78

Browse files
committed
Update src/ApiResource/Error.php
1 parent ba8a7e6 commit b788c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiResource/Error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function createFromException(\Exception|\Throwable $exception, int
109109
{
110110
$headers = ($exception instanceof SymfonyHttpExceptionInterface || $exception instanceof HttpExceptionInterface) ? $exception->getHeaders() : [];
111111

112-
return new self('An error occurred', $exception->getMessage(), $status, $exception->getTrace(), type: '/errors/'.$status, headers: $headers, previous: $exception->getPrevious());
112+
return new self('An error occurred', $exception->getMessage(), $status, $exception->getTrace(), type: "/errors/$status", headers: $headers, previous: $exception->getPrevious());
113113
}
114114

115115
#[Ignore]

0 commit comments

Comments
 (0)