Skip to content

Commit ea53fc0

Browse files
authored
Update errors.md (#1619)
1 parent d258813 commit ea53fc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ use App\Exception\ProductWasRemovedException;
125125
use App\Exception\ProductNotFoundException;
126126
127127
#[ApiResource(
128-
exceptionToStatus: ['ProductNotFoundException::class' => 404]
128+
exceptionToStatus: [ProductNotFoundException::class => 404]
129129
operations: [
130-
new Get(exceptionToStatus: ['ProductWasRemovedException::class' => 410]),
130+
new Get(exceptionToStatus: [ProductWasRemovedException::class => 410]),
131131
new GetCollection(),
132132
new Post()
133133
]

0 commit comments

Comments
 (0)