Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 18, 2024
1 parent c90961e commit e1e5e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,11 @@ $method->addParameter('items', []) // $items = []
// function count(&$items = [])
```

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

```php
$method = $class->addMethod('count');
$method->setVariadics(true);
$method->setVariadic(true);
$method->addParameter('items');
```

Expand Down

0 comments on commit e1e5e8f

Please sign in to comment.