Commit feb651f6 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #670 from kbanman/hmvc-fix

Add support for non-string parameters in controller routes
parents fdac5e84 1b2ab309
......@@ -179,6 +179,8 @@ abstract class Controller {
// controllers with much less code than would be usual.
foreach ($parameters as $key => $value)
{
if ( ! is_string($value)) continue;
$search = '(:'.($key + 1).')';
$destination = str_replace($search, $value, $destination, $count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment