Skip to content

Commit 9110562

Browse files
committed
Fix documentation
1 parent 6f43e1b commit 9110562

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/components/7.0/query.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public Query::parameters(): array
194194
public Query::parameter(string $name): mixed
195195
public Query::hasParameter(string ...$name): bool
196196
public 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

294294
If 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
300300
echo $new_query->value(); //return 'z='
301301
~~~

0 commit comments

Comments
 (0)