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.
2 parents e99018e + 11a69c0 commit c86957fCopy full SHA for c86957f
src/Serializer/JsonApiResponseTrait.php
@@ -67,7 +67,9 @@ protected function resourceDeletedResponse($json)
67
*/
68
protected function resourceNotFoundResponse($json)
69
{
70
- return $this->createResponse(new ResourceNotFound($json));
+ $error = new Error('Resource not Found', json_decode($json));
71
+
72
+ return $this->createResponse(new ResourceNotFound(new ErrorBag([$error])));
73
}
74
75
/**
0 commit comments