Skip to content

Commit 4dbbacf

Browse files
authored
Merge pull request #57 from TimWolla/patch-1
Pass `''` instead of `null` to `http_build_query()`'s second parameter
2 parents 8a4c0c4 + e5f0567 commit 4dbbacf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpBaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function getMethods(): array
119119
protected function getUri(array $query = [])
120120
{
121121
return !empty($query)
122-
? PHPUnitUtility::getUri().'?'.http_build_query($query, null, '&')
122+
? PHPUnitUtility::getUri().'?'.http_build_query($query, '', '&')
123123
: PHPUnitUtility::getUri();
124124
}
125125

@@ -192,7 +192,7 @@ private function getBodies()
192192
{
193193
return [
194194
null,
195-
http_build_query($this->getData(), null, '&'),
195+
http_build_query($this->getData(), '', '&'),
196196
];
197197
}
198198

0 commit comments

Comments
 (0)