Skip to content

Commit 8a9fbfb

Browse files
Merge branch '2.8' into 3.4
* 2.8: Command::addOption should allow int in $default [Form] Minor fixes in docs and cs [Form] Fixed empty data for compound date types
2 parents 2db8714 + b340f37 commit 8a9fbfb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Command/Command.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ public function addArgument($name, $mode = null, $description = '', $default = n
387387
/**
388388
* Adds an option.
389389
*
390-
* @param string $name The option name
391-
* @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
393-
* @param string $description A description text
394-
* @param string|string[]|bool|null $default The default value (must be null for self::VALUE_NONE)
390+
* @param string $name The option name
391+
* @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
393+
* @param string $description A description text
394+
* @param string|string[]|int|bool|null $default The default value (must be null for self::VALUE_NONE)
395395
*
396396
* @throws InvalidArgumentException If option mode is invalid or incompatible
397397
*

0 commit comments

Comments
 (0)