Skip to content

Commit

Permalink
Add string|array|null typehint for data
Browse files Browse the repository at this point in the history
  • Loading branch information
softius committed Jan 4, 2019
1 parent eae2679 commit 40cd2d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/TestSuite/IntegrationTestTrait.php
Expand Up @@ -404,7 +404,7 @@ public function get($url)
* response.
*
* @param string|array $url The URL to request.
* @param array $data The data for the request.
* @param string|array|null $data The data for the request.
* @return void
* @throws \PHPUnit\Exception
*/
Expand All @@ -421,7 +421,7 @@ public function post($url, $data = [])
* response.
*
* @param string|array $url The URL to request.
* @param array $data The data for the request.
* @param string|array|null $data The data for the request.
* @return void
* @throws \PHPUnit\Exception
*/
Expand All @@ -438,7 +438,7 @@ public function patch($url, $data = [])
* response.
*
* @param string|array $url The URL to request.
* @param array $data The data for the request.
* @param string|array|null $data The data for the request.
* @return void
* @throws \PHPUnit\Exception
*/
Expand Down Expand Up @@ -502,7 +502,7 @@ public function options($url)
*
* @param string|array $url The URL
* @param string $method The HTTP method
* @param array|null $data The request data.
* @param string|array|null $data The request data.
* @return void
* @throws \PHPUnit\Exception
*/
Expand Down Expand Up @@ -600,7 +600,7 @@ protected function _handleError($exception)
*
* @param string|array $url The URL
* @param string $method The HTTP method
* @param array|null $data The request data.
* @param string|array|null $data The request data.
* @return array The request context
*/
protected function _buildRequest($url, $method, $data)
Expand Down

0 comments on commit 40cd2d9

Please sign in to comment.