File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ public Query::parameters(): array
194194public Query::parameter(string $name): mixed
195195public Query::hasParameter(string ...$name): bool
196196public Query::withoutNumericIndices(): self
197- public Query::withoutParameter (...string $offsets): self
197+ public Query::withoutParameters (...string $offsets): self
198198~~~
199199
200200<p class =" message-info " ><code >Query::fromVariable</code > replaced the deprecated
@@ -289,13 +289,13 @@ echo $newQuery->value(); //return 'foo=1&z='
289289
290290<p class =" message-warning " >If the name does not exist, a <code >ValueError</code > will be thrown</p >
291291
292- ### Query::withoutParameter
292+ ### Query::withoutParameters
293293
294294If you want to remove PHP's variable from the query string you can use the ` Query::withoutParams ` method as shown below
295295
296296~~~ php
297297$query = Query::fromRFC3986('foo[]=bar&foo[]=y+olo&z=');
298- $new_query = $query->withoutParameter ('foo');
298+ $new_query = $query->withoutParameters ('foo');
299299$new_query->params('foo'); //return null
300300echo $new_query->value(); //return 'z='
301301~~~
You can’t perform that action at this time.
0 commit comments