Fix docs
symfony documentation tells people to pass null, and it is the default, but the method docs don't allow it so static analyzers complain about it (spotted by phan)
This commit is contained in:
parent
3245cb48da
commit
64a65e9cd1
@ -388,7 +388,7 @@ class Command
|
|||||||
* Adds an option.
|
* Adds an option.
|
||||||
*
|
*
|
||||||
* @param string $name The option name
|
* @param string $name The option name
|
||||||
* @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
|
* @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
|
||||||
* @param int|null $mode The option mode: One of the InputOption::VALUE_* constants
|
* @param int|null $mode The option mode: One of the InputOption::VALUE_* constants
|
||||||
* @param string $description A description text
|
* @param string $description A description text
|
||||||
* @param string|string[]|int|bool|null $default The default value (must be null for InputOption::VALUE_NONE)
|
* @param string|string[]|int|bool|null $default The default value (must be null for InputOption::VALUE_NONE)
|
||||||
|
@ -34,7 +34,7 @@ class InputOption
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name The option name
|
* @param string $name The option name
|
||||||
* @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
|
* @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
|
||||||
* @param int|null $mode The option mode: One of the VALUE_* constants
|
* @param int|null $mode The option mode: One of the VALUE_* constants
|
||||||
* @param string $description A description text
|
* @param string $description A description text
|
||||||
* @param string|string[]|int|bool|null $default The default value (must be null for self::VALUE_NONE)
|
* @param string|string[]|int|bool|null $default The default value (must be null for self::VALUE_NONE)
|
||||||
@ -89,7 +89,7 @@ class InputOption
|
|||||||
/**
|
/**
|
||||||
* Returns the option shortcut.
|
* Returns the option shortcut.
|
||||||
*
|
*
|
||||||
* @return string The shortcut
|
* @return string|null The shortcut
|
||||||
*/
|
*/
|
||||||
public function getShortcut()
|
public function getShortcut()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user