Skip to content

Commit 2032f7d

Browse files
committed
docs: fix incorrect sample code
getVar() is not guaranteed to get POST data.
1 parent 4647fe3 commit 2032f7d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$something = $request->getVar('foo');
3+
$something = $request->getPost('foo');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$email = $request->getVar('email', FILTER_SANITIZE_EMAIL);
3+
$email = $request->getPost('email', FILTER_SANITIZE_EMAIL);

0 commit comments

Comments
 (0)