From 40cd2d94332427ec1884f7331d45886c1ca48436 Mon Sep 17 00:00:00 2001 From: Iacovos Constantinou Date: Fri, 4 Jan 2019 15:06:01 +0200 Subject: [PATCH] Add string|array|null typehint for data --- src/TestSuite/IntegrationTestTrait.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/TestSuite/IntegrationTestTrait.php b/src/TestSuite/IntegrationTestTrait.php index 3ee52b14e0c..7ffdc68d87e 100644 --- a/src/TestSuite/IntegrationTestTrait.php +++ b/src/TestSuite/IntegrationTestTrait.php @@ -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 */ @@ -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 */ @@ -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 */ @@ -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 */ @@ -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)