From e1e5e8fecde251763831e127ccba9a9c20676fe3 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 18 Sep 2024 13:10:17 +0200 Subject: [PATCH] typo --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index ba102dea..a321aefb 100644 --- a/readme.md +++ b/readme.md @@ -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'); ```