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 d258813 commit ea53fc0Copy full SHA for ea53fc0
core/errors.md
@@ -125,9 +125,9 @@ use App\Exception\ProductWasRemovedException;
125
use App\Exception\ProductNotFoundException;
126
127
#[ApiResource(
128
- exceptionToStatus: ['ProductNotFoundException::class' => 404]
+ exceptionToStatus: [ProductNotFoundException::class => 404]
129
operations: [
130
- new Get(exceptionToStatus: ['ProductWasRemovedException::class' => 410]),
+ new Get(exceptionToStatus: [ProductWasRemovedException::class => 410]),
131
new GetCollection(),
132
new Post()
133
]
0 commit comments