Merge pull request #373 from skipperbent/v3

V3
This commit is contained in:
Simon Sessingø
2018-02-26 23:49:41 +01:00
committed by GitHub
+1 -1
View File
@@ -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);
}
/**