Browse Source

Merge pull request #12870 from QoboLtd/integration-test-data-typehint

Add string|array|null typehint for data
Mark Story 7 years ago
parent
commit
3c5fccf338
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/TestSuite/IntegrationTestTrait.php

+ 5 - 5
src/TestSuite/IntegrationTestTrait.php

@@ -404,7 +404,7 @@ trait IntegrationTestTrait
      * 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 @@ trait IntegrationTestTrait
      * 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 @@ trait IntegrationTestTrait
      * 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 @@ trait IntegrationTestTrait
      *
      * @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 @@ trait IntegrationTestTrait
      *
      * @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)