mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user