Skip to content

Commit 2c039dc

Browse files
committed
Docblock: Some send methods can take string as parameters parameter
1 parent 4b1f599 commit 2c039dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Codeception/Module/REST.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ public function amAWSAuthenticated($additionalAWSConfig = [])
453453
* ```
454454
*
455455
* @param $url
456-
* @param array|\JsonSerializable $params
456+
* @param array|string|\JsonSerializable $params
457457
* @param array $files A list of filenames or "mocks" of $_FILES (each entry being an array with the following
458458
* keys: name, type, error, size, tmp_name (pointing to the real file path). Each key works
459459
* as the "name" attribute of a file input field.
@@ -511,7 +511,7 @@ public function sendGet($url, $params = [])
511511
* Sends PUT request to given uri.
512512
*
513513
* @param $url
514-
* @param array $params
514+
* @param array|string|\JsonSerializable $params
515515
* @param array $files
516516
* @part json
517517
* @part xml
@@ -525,7 +525,7 @@ public function sendPut($url, $params = [], $files = [])
525525
* Sends PATCH request to given uri.
526526
*
527527
* @param $url
528-
* @param array $params
528+
* @param array|string|\JsonSerializable $params
529529
* @param array $files
530530
* @part json
531531
* @part xml
@@ -554,7 +554,7 @@ public function sendDelete($url, $params = [], $files = [])
554554
*
555555
* @param $method
556556
* @param $url
557-
* @param array|\JsonSerializable $params
557+
* @param array|string|\JsonSerializable $params
558558
* @param array $files
559559
* @part json
560560
* @part xml

0 commit comments

Comments
 (0)