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); }