@@ -38,7 +38,7 @@ public function getOptionParser()
3838
3939## Using Arguments
4040
41- ` method ` Cake\\ Console\\ ConsoleOptionParser::** addArgument** ($name, $params = [ ] )
41+ ` method ` Cake\\ Console\\ ConsoleOptionParser::** addArgument** (string $name, array $params = [ ] ): static
4242
4343Positional arguments are frequently used in command line tools,
4444and ` ConsoleOptionParser ` allows you to define positional
@@ -73,7 +73,7 @@ The `separator` option was added.
7373
7474### Adding Multiple Arguments
7575
76- ` method ` Cake\\ Console\\ ConsoleOptionParser::** addArguments** (array $args)
76+ ` method ` Cake\\ Console\\ ConsoleOptionParser::** addArguments** (array $args): static
7777
7878If you have an array with multiple arguments you can use
7979` $parser->addArguments() ` to add multiple arguments at once. :
@@ -109,7 +109,7 @@ will be raised and the shell will be stopped.
109109
110110## Using Options
111111
112- ` method ` Cake\\ Console\\ ConsoleOptionParser::** addOption** ($name, array $options = [ ] )
112+ ` method ` Cake\\ Console\\ ConsoleOptionParser::** addOption** (string $name, array $options = [ ] ): static
113113
114114Options or flags are used in command line tools to provide unordered key/value
115115arguments for your commands. Options can define both verbose and short aliases.
@@ -164,7 +164,7 @@ The `separator` option was added.
164164
165165### Adding Multiple Options
166166
167- ` method ` Cake\\ Console\\ ConsoleOptionParser::** addOptions** (array $options)
167+ ` method ` Cake\\ Console\\ ConsoleOptionParser::** addOptions** (array $options): static
168168
169169If you have an array with multiple options you can use ` $parser->addOptions() `
170170to add multiple options at once. :
@@ -241,7 +241,7 @@ public function getOptionParser()
241241
242242### Merging Option Parsers
243243
244- ` method ` Cake\\ Console\\ ConsoleOptionParser::** merge** ($spec)
244+ ` method ` Cake\\ Console\\ ConsoleOptionParser::** merge** (ConsoleOptionParser $spec): static
245245
246246When building a group command, you maybe want to combine several parsers for
247247this:
@@ -348,7 +348,7 @@ epilog.
348348
349349### Set the Description
350350
351- ` method ` Cake\\ Console\\ ConsoleOptionParser::** setDescription** ($text)
351+ ` method ` Cake\\ Console\\ ConsoleOptionParser::** setDescription** (array|string $text): static
352352
353353The description displays above the argument and option information. By passing
354354in either an array or a string, you can set the value of the description:
@@ -363,7 +363,7 @@ $parser->getDescription();
363363
364364### Set the Epilog
365365
366- ` method ` Cake\\ Console\\ ConsoleOptionParser::** setEpilog** ($text)
366+ ` method ` Cake\\ Console\\ ConsoleOptionParser::** setEpilog** (array|string $text): static
367367
368368Gets or sets the epilog for the option parser. The epilog is displayed after the
369369argument and option information. By passing in either an array or a string, you
0 commit comments