Development

- Removed yet another depricated method.
- Fixed $_GET parameters being merged on default when calling getUrl.
- Fixed double / that could appear on urls sometimes.
This commit is contained in:
Simon Sessingø
2016-11-21 03:05:43 +01:00
parent 5415d73f4d
commit efe5767220
3 changed files with 3 additions and 28 deletions
+1 -1
View File
@@ -384,7 +384,7 @@ class Router
* @param array|null $getParams
* @return string
*/
public function getUrl($name = null, $parameters = null, array $getParams = null)
public function getUrl($name = null, $parameters = null, $getParams = [])
{
if ($getParams !== null && is_array($getParams) === false) {
throw new \InvalidArgumentException('Invalid type for getParams. Must be array or null');