Skip to content

Commit 936df97

Browse files
committed
Apply suggestion
1 parent 26f893d commit 936df97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/csrf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ object evaluated to the id::
202202
// ...
203203

204204
#[IsCsrfTokenValid(new Expression('"delete-item-" ~ args["post"].id'), tokenKey: 'token')]
205-
public function delete(Request $request): Response
205+
public function delete(Post $post): Response
206206
{
207207
// ... do something, like deleting an object
208208
}

0 commit comments

Comments
 (0)