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

Skip to content

Commit 5f8bd89

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 fixup: apply coding standards patch
1 parent 19b0189 commit 5f8bd89

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,11 @@ public function addArgument($name, $mode = null, $description = '', $default = n
381381
/**
382382
* Adds an option.
383383
*
384-
* @param string $name The option name
385-
* @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
386-
* @param int|null $mode The option mode: One of the VALUE_* constants
387-
* @param string $description A description text
388-
* @param string|string[]|bool|null $default The default value (must be null for self::VALUE_NONE)
384+
* @param string $name The option name
385+
* @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
386+
* @param int|null $mode The option mode: One of the VALUE_* constants
387+
* @param string $description A description text
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