From 7302598222384df3c891e5bbc9057dece315478b Mon Sep 17 00:00:00 2001 From: Kamil Wylegala Date: Tue, 4 Jan 2022 23:08:45 +0100 Subject: [PATCH] Fixed deprecation notice: numeric prefix cannot be null in http_build_query. --- lib/Cake/Network/CakeRequest.php | 2 +- lib/Cake/Routing/Router.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Network/CakeRequest.php b/lib/Cake/Network/CakeRequest.php index 5d4bd7ee0..f8f5e176c 100644 --- a/lib/Cake/Network/CakeRequest.php +++ b/lib/Cake/Network/CakeRequest.php @@ -750,7 +750,7 @@ class CakeRequest implements ArrayAccess { public function here($base = true) { $url = $this->here; if (!empty($this->query)) { - $url .= '?' . http_build_query($this->query, null, '&'); + $url .= '?' . http_build_query($this->query, "", '&'); } if (!$base) { $url = preg_replace('/^' . preg_quote($this->base, '/') . '/', '', $url, 1); diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 368a2ceff..17256409f 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -1073,7 +1073,7 @@ class Router { $out = $q; $q = $extra; } - $addition = http_build_query($q, null, $join); + $addition = http_build_query($q, "", $join); if ($out && $addition && substr($out, strlen($join) * -1, strlen($join)) !== $join) { $out .= $join;