8000 Command::addOption should allow int in $default · symfony/symfony@84a41f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84a41f3

Browse files
committed
Command::addOption should allow int in $default
The constructor for InputOption allows int on the $default parameter, but not Command::addOption $default parameter
1 parent 19b0189 commit 84a41f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public function addArgument($name, $mode = null, $description = '', $default = n
385385
* @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
386386
* @param int|null $mode The option mode: One of the VALUE_* constants
387387
* @param string $description A description text
388-
* @param string|string[]|bool|null $default The default value (must be null for self::VALUE_NONE)
388+
* @param string|string[]|int|bool|null $default The default value (must be null for self::VALUE_NONE)
389389
*
390390
* @throws InvalidArgumentException If option mode is invalid or incompatible
391391
*

0 commit comments

Comments
 (0)
0