Skip to content

Commit 2b92dcf

Browse files
Update REST.php
1 parent 5fb434b commit 2b92dcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Module/REST.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ public function amAWSAuthenticated($additionalAWSConfig = [])
430430
* 'tmp_name' => codecept_data_dir('sample_file.pdf')
431431
* ]
432432
* ]);
433-
* // Some frameworks (e.g. Symfony) create field names in the form of an "array": `<input type="text" name="form[task]">`
434-
* // In this case you need to pass the fields like this:
433+
* // If your field names contain square brackets (e.g. `<input type="text" name="form[task]">`),
434+
* // PHP parses them into an array. In this case you need to pass the fields like this:
435435
* $I->sendPOST('/add-task', ['form' => [
436436
* 'task' => 'lorem ipsum',
437437
* 'category' => 'miscellaneous',

0 commit comments

Comments
 (0)