File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit bootstrap =" vendor/autoload.php" colors =" true" verbose = " true " stopOnFailure = " false " >
3- <testsuites >
4- <testsuite name =" tornelib-php-netcurl" >
5- <directory >tests</directory >
6- </testsuite >
7- </testsuites >
1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phpunit xmlns : xsi = " http://www.w3.org/2001/XMLSchema-instance " bootstrap =" vendor/autoload.php" colors =" true" stopOnFailure = " false " xsi : noNamespaceSchemaLocation = " https://schema.phpunit.de/10.1/phpunit.xsd " cacheDirectory = " .phpunit.cache " >
3+ <testsuites >
4+ <testsuite name =" tornelib-php-netcurl" >
5+ <directory >tests</directory >
6+ </testsuite >
7+ </testsuites >
88</phpunit >
Original file line number Diff line number Diff line change @@ -644,11 +644,13 @@ public function setRequestUrl($requestUrl)
644644 * @param null $requestData
645645 * @param null $requestMethod
646646 * @return array
647+ * @throws Exception
647648 * @since 6.1.0
648649 */
649650 public function getRequestData ($ dataType = null , $ requestData = null , $ requestMethod = null )
650651 {
651652 if (is_null ($ dataType )) {
653+ /** @var DataType $dataType */
652654 $ dataType = $ this ->requestDataType ;
653655 }
654656 if (is_null ($ requestData )) {
Original file line number Diff line number Diff line change @@ -626,7 +626,8 @@ private function setProperCustomHeader()
626626 }
627627
628628 foreach ($ this ->customPreHeaders as $ headerKey => $ headerValue ) {
629- $ testHead = explode (": " , $ headerValue , 2 );
629+ //$testHead = explode(":", $headerValue, 2);
630+ $ testHead = is_string ($ headerValue ) ? explode (": " , $ headerValue , 2 ) : $ headerValue ;
630631 if (isset ($ testHead [1 ])) {
631632 $ this ->customHeaders [] = $ headerValue ;
632633 } elseif (!is_numeric ($ headerKey )) {
You can’t perform that action at this time.
0 commit comments