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()
616616 /**
617617 * Force the scheme for URLs.
618618 *
619- * @param string $scheme
619+ * @param string|null $scheme
620620 * @return void
621621 */
622622 public function forceScheme ($ scheme )
623623 {
624624 $ this ->cachedScheme = null ;
625625
626- $ this ->forceScheme = $ scheme .':// ' ;
626+ $ this ->forceScheme = $ scheme ? $ scheme .':// ' : null ;
627627 }
628628
629629 /**
630630 * Set the forced root URL.
631631 *
632- * @param string $root
632+ * @param string|null $root
633633 * @return void
634634 */
635635 public function forceRootUrl ($ root )
636636 {
637- $ this ->forcedRoot = rtrim ($ root , '/ ' );
637+ $ this ->forcedRoot = $ root ? rtrim ($ root , '/ ' ) : null ;
638638
639639 $ this ->cachedRoot = null ;
640640 }
You can’t perform that action at this time.
0 commit comments