8000 minor #29674 [Console] fix PHPDoc in Command (mhujer) · Firehed/symfony@2437d70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2437d70

Browse files
committed
minor symfony#29674 [Console] fix PHPDoc in Command (mhujer)
This PR was merged into the 3.4 branch. Discussion ---------- [Console] fix PHPDoc in Command | Q | A | ------------- | --- | Branch? | 3.4 up to 4.2 for bug fixes <!-- see below --> | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | License | MIT <!-- Write a short README entry for your feature/bugfix here (replace this comment block.) This will help people understand your PR and can be used as a start of the Doc PR. Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Issue was introduced in symfony#28714, this PR fixes copy&paste from `InputArgument` and `InputOption`. Commits ------- 13bcd6a [Console] fix PHPDoc in Command
2 parents f3a46ec + 13bcd6a commit 2437d70

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)
0