Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13bcd6a

Browse files
committed
[Console] fix PHPDoc in Command
Issue was introduced symfony#28714
1 parent f3a46ec commit 13bcd6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Console/Command/Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ public function getNativeDefinition()
369369
* Adds an argument.
370370
*
371371
* @param string $name The argument name
372-
* @param int|null $mode The argument mode: self::REQUIRED or self::OPTIONAL
372+
* @param int|null $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL
373373
* @param string $description A description text
374-
* @param string|string[]|null $default The default value (for self::OPTIONAL mode only)
374+
* @param string|string[]|null $default The default value (for InputArgument::OPTIONAL mode only)
375375
*
376376
* @throws InvalidArgumentException When argument mode is not valid
377377
*
@@ -389,9 +389,9 @@ public function addArgument($name, $mode = null, $description = '', $default = n
389389
*
390390
* @param string $name The option name
391391
* @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
392-
* @param int|null $mode The option mode: One of the VALUE_* constants
392+
* @param int|null $mode The option mode: One of the InputOption::VALUE_* constants
393393
* @param string $description A description text
394-
* @param string|string[]|int|bool|null $default The default value (must be null for self::VALUE_NONE)
394+
* @param string|string[]|int|bool|null $default The default value (must be null for InputOption::VALUE_NONE)
395395
*
396396
* @throws InvalidArgumentException If option mode is invalid or incompatible
397397
*

0 commit comments

Comments
 (0)