Skip to content

Commit e5f0567

Browse files
authored
Pass '' instead of null to http_build_query()'s second parameter
Passing `null` will show a deprecation warning with PHP 8.1.
1 parent 8a4c0c4 commit e5f0567

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)