Skip to content

Commit e1e5e8f

Browse files
committed
typo
1 parent c90961e commit e1e5e8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ $method->addParameter('items', []) // $items = []
387387
// function count(&$items = [])
388388
```
389389

390-
To define the so-called variadics parameters (or also the splat, spread, ellipsis, unpacking or three dots operator), use `setVariadics()`:
390+
To define the so-called variadics parameters (or also the splat, spread, ellipsis, unpacking or three dots operator), use `setVariadic()`:
391391

392392
```php
393393
$method = $class->addMethod('count');
394-
$method->setVariadics(true);
394+
$method->setVariadic(true);
395395
$method->addParameter('items');
396396
```
397397

0 commit comments

Comments
 (0)