Skip to content

Commit

Permalink
Make sure to detect bool parameters & cast to int for URLGenerator usage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Oct 4, 2018
1 parent c729019 commit aaadbea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bundle/Routing/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ function () use ($legacyModuleUri, $moduleName, $viewName, $parameters, $querySt
continue;
}

if (is_bool($paramValue)) {
$paramValue = (int)$paramValue;
}

$unorderedParams .= "/($paramName)/$paramValue";
}

Expand Down

0 comments on commit aaadbea

Please sign in to comment.