Upstream spatie/url state of the touched files before 1042a286b8
This commit is contained in:
1 parent
ef1f80eb18
commit
857983643e
2 files changed
+1
-20
No files matched your search
@@ -65,10 +65,6 @@ class QueryParameterBag implements \Stringable
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
// Valueless parameters are stored as null, which http_build_query() skips;
|
||||
// render them with an empty value so they survive.
|
||||
$parameters = array_map(fn ($value) => $value ?? '', $this->parameters);
|
||||
|
||||
return http_build_query($parameters, '', '&', PHP_QUERY_RFC3986);
|
||||
return http_build_query($this->parameters, '', '&', PHP_QUERY_RFC3986);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user