mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Fixed setUrl issue.
This commit is contained in:
@@ -217,7 +217,7 @@ class Request
|
||||
*/
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->url = is_string($url) ? new Url($url) : $url;
|
||||
$this->url = ($url instanceof Url) ? $url : new Url($url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user