@@ -363,10 +363,12 @@ public function getNativeDefinition()
363
363
/**
364
364
* Adds an argument.
365
365
*
366
- * @param string $name The argument name
367
- * @param int $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL
368
- * @param string $description A description text
369
- * @param mixed $default The default value (for InputArgument::OPTIONAL mode only)
366
+ * @param string $name The argument name
367
+ * @param int|null $mode The argument mode: self::REQUIRED or self::OPTIONAL
368
+ * @param string $description A description text
369
+ * @param string|string[]|null $default The default value (for self::OPTIONAL mode only)
370
+ *
371
+ * @throws InvalidArgumentException When argument mode is not valid
370
372
*
371
373
* @return $this
372
374
*/
@@ -380,11 +382,13 @@ public function addArgument($name, $mode = null, $description = '', $default = n
380
382
/**
381
383
* Adds an option.
382
384
*
383
- * @param string $name The option name
384
- * @param string $shortcut The shortcut (can be null)
385
- * @param int $mode The option mode: One of the InputOption::VALUE_* constants
386
- * @param string $description A description text
387
- * @param mixed $default The default value (must be null for InputOption::VALUE_NONE)
385
+ * @param string $name The option name
386
+ * @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
387
+ * @param int|null $mode The option mode: One of the VALUE_* constants
388
+ * @param string $description A description text
389
+ * @param string|string[]|bool|null $default The default value (must be null for self::VALUE_NONE)
390
+ *
391
+ * @throws InvalidArgumentException If option mode is invalid or incompatible
388
392
*
389
393
* @return $this
390
394
*/
0 commit comments