Skip to content

Commit

Permalink
fix Exception ErrorException: "urldecode(): Passing null to parameter #1
Browse files Browse the repository at this point in the history
 ($string) of type string is deprecated" in  Zend/Rest/Route.php
  • Loading branch information
Jimbolino authored Jul 26, 2022
1 parent a4dad8a commit 52181d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Rest/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 52181d9

Please sign in to comment.