Skip to content

Commit f2673d3

Browse files
fastnloudbart-van-amelsvoort
authored andcommitted
Fixed http_build_query() deprecation warning
1 parent 126fed0 commit f2673d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 4.1.1
44

55
* Changed PHP version constraint to >=7.4
6+
* Fixed http_build_query() deprecation warning: Passing null to parameter #2 ($numeric_prefix) of type string is deprecated
67

78
## 4.0.1
89

lib/FH/PostcodeAPI/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function buildUrl(string $path): string
121121

122122
private function createHttpGetRequest(string $url, array $params = []): Request
123123
{
124-
$url .= (count($params) > 0 ? '?' . http_build_query($params, null, '&', PHP_QUERY_RFC3986) : '');
124+
$url .= (count($params) > 0 ? '?' . http_build_query($params, '', '&', PHP_QUERY_RFC3986) : '');
125125

126126
return new Request('GET', $url);
127127
}

0 commit comments

Comments
 (0)