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.
1 parent e5229fc commit 80caefcCopy full SHA for 80caefc
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