@@ -79,7 +79,7 @@ public static function build(iterable $pairs, string $separator = '&', int $encT
7979 * @throws SyntaxError If the encoding type is invalid
8080 * @throws SyntaxError If a pair is invalid
8181 */
82- public static function buildFromPairs (iterable $ pairs , Converter $ converter = null ): ?string
82+ public static function buildFromPairs (iterable $ pairs , ? Converter $ converter = null ): ?string
8383 {
8484 $ keyValuePairs = [];
8585 foreach ($ pairs as $ pair ) {
@@ -124,7 +124,7 @@ public static function extract(Stringable|string|bool|null $query, string $separ
124124 *
125125 * @throws SyntaxError
126126 */
127- public static function extractFromValue (Stringable |string |bool |null $ query , Converter $ converter = null ): array
127+ public static function extractFromValue (Stringable |string |bool |null $ query , ? Converter $ converter = null ): array
128128 {
129129 return self ::convert (self ::decodePairs (
130130 ($ converter ?? Converter::fromRFC3986 ())->toPairs ($ query ),
@@ -153,7 +153,7 @@ public static function parse(Stringable|string|bool|null $query, string $separat
153153 *
154154 * @return array<int, array{0:string, 1:string|null}>
155155 */
156- public static function parseFromValue (Stringable |string |bool |null $ query , Converter $ converter = null ): array
156+ public static function parseFromValue (Stringable |string |bool |null $ query , ? Converter $ converter = null ): array
157157 {
158158 return self ::decodePairs (
159159 ($ converter ?? Converter::fromRFC3986 ())->toPairs ($ query ),
0 commit comments