File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -616,25 +616,25 @@ public function getDefaultParameters()
616
616
/**
617
617
* Force the scheme for URLs.
618
618
*
619
- * @param string $scheme
619
+ * @param string|null $scheme
620
620
* @return void
621
621
*/
622
622
public function forceScheme ($ scheme )
623
623
{
624
624
$ this ->cachedScheme = null ;
625
625
626
- $ this ->forceScheme = $ scheme .':// ' ;
626
+ $ this ->forceScheme = $ scheme ? $ scheme .':// ' : null ;
627
627
}
628
628
629
629
/**
630
630
* Set the forced root URL.
631
631
*
632
- * @param string $root
632
+ * @param string|null $root
633
633
* @return void
634
634
*/
635
635
public function forceRootUrl ($ root )
636
636
{
637
- $ this ->forcedRoot = rtrim ($ root , '/ ' );
637
+ $ this ->forcedRoot = $ root ? rtrim ($ root , '/ ' ) : null ;
638
638
639
639
$ this ->cachedRoot = null ;
640
640
}
You can’t perform that action at this time.
0 commit comments