@@ -218,20 +218,20 @@ public static function build(array $components): string
218218    }
219219
220220    /** 
221-      * Generate  a URI string representation based on RFC3986 algorithm. 
221+      * Generates  a URI string representation based on RFC3986 algorithm. 
222222     * 
223-      * valid  URI component MUST be provided without their URI delimiters 
223+      * Valid  URI component MUST be provided without their URI delimiters 
224224     * but properly encoded. 
225225     * 
226226     * @link https://tools.ietf.org/html/rfc3986#section-5.3 
227227     * @link https://tools.ietf.org/html/rfc3986#section-7.5§ 
228228     */ 
229229    public  static  function  buildUri (
230-         ?string  $ scheme
231-         ?string  $ authority
232-         ?string  $ path
233-         ?string  $ query
234-         ?string  $ fragment
230+         ?string  $ scheme =  null ,
231+         ?string  $ authority =  null ,
232+         ?string  $ path =  null ,
233+         ?string  $ query =  null ,
234+         ?string  $ fragment =  null ,
235235    ): string  {
236236        self ::validateComponents ($ scheme$ authority$ path
237237        $ uri'' ;
@@ -284,25 +284,6 @@ public static function buildAuthority(array $components): ?string
284284        return  $ authority
285285    }
286286
287-     /** 
288-      * Generate a URI UserInfo representation from the URI parsed representation. 
289-      * 
290-      * @param InputComponentMap $components 
291-      */ 
292-     public  static  function  buildUserInfo (array  $ componentsstring 
293-     {
294-         if  (!isset ($ components'user ' ])) {
295-             return  null ;
296-         }
297- 
298-         $ userInfo$ components'user ' ];
299-         if  (! isset ($ components'pass ' ])) {
300-             return  $ userInfo
301-         }
302- 
303-         return  $ userInfo': ' .$ components'pass ' ];
304-     }
305- 
306287    /** 
307288     * Parses and normalizes the URI following RFC3986 destructive and non-destructive constraints. 
308289     * 
0 commit comments