@@ -275,7 +275,7 @@ protected function filterScheme($scheme)
275275 throw new InvalidArgumentException ('Uri scheme must be a string ' );
276276 }
277277
278- $ scheme = str_replace (':// ' , '' , strtolower (( string ) $ scheme ));
278+ $ scheme = str_replace (':// ' , '' , strtolower ($ scheme ));
279279 if (!isset ($ valid [$ scheme ])) {
280280 throw new InvalidArgumentException ('Uri scheme must be one of: "", "https", "http" ' );
281281 }
@@ -656,7 +656,7 @@ public function withQuery($query)
656656 if (!is_string ($ query ) && !method_exists ($ query , '__toString ' )) {
657657 throw new InvalidArgumentException ('Uri query must be a string ' );
658658 }
659- $ query = ltrim (( string ) $ query , '? ' );
659+ $ query = ltrim ($ query , '? ' );
660660 $ clone = clone $ this ;
661661 $ clone ->query = $ this ->filterQuery ($ query );
662662
@@ -724,7 +724,7 @@ public function withFragment($fragment)
724724 if (!is_string ($ fragment ) && !method_exists ($ fragment , '__toString ' )) {
725725 throw new InvalidArgumentException ('Uri fragment must be a string ' );
726726 }
727- $ fragment = ltrim (( string ) $ fragment , '# ' );
727+ $ fragment = ltrim ($ fragment , '# ' );
728728 $ clone = clone $ this ;
729729 $ clone ->fragment = $ this ->filterQuery ($ fragment );
730730
0 commit comments