From 52181d95eafe0e25d40f812f02745e3a056f9549 Mon Sep 17 00:00:00 2001 From: Jimbolino Date: Tue, 26 Jul 2022 11:07:15 +0200 Subject: [PATCH] fix Exception ErrorException: "urldecode(): Passing null to parameter #1 ($string) of type string is deprecated" in Zend/Rest/Route.php --- library/Zend/Rest/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Rest/Route.php b/library/Zend/Rest/Route.php index 4fd5388947..3f1454bf26 100644 --- a/library/Zend/Rest/Route.php +++ b/library/Zend/Rest/Route.php @@ -191,7 +191,7 @@ public function match($request, $partial = false) // Digest URI params if ($numSegs = count($path)) { for ($i = 0; $i < $numSegs; $i = $i + 2) { - $key = urldecode($path[$i]); + $key = urldecode((string) $path[$i]); $val = isset($path[$i + 1]) ? $path[$i + 1] : null; $params[$key] = urldecode($val); }