Skip to content

Commit 1c759a1

Browse files
committed
minor symfony#28374 [Console] fixed PHPDoc for setArgument/setOption in InputInterface (liarco)
This PR was squashed before being merged into the 2.8 branch (closes symfony#28374). Discussion ---------- [Console] fixed PHPDoc for setArgument/setOption in InputInterface | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#28354 | License | MIT | Doc PR | Methods now accept a value of any type except objects not implementing __toString(). **Example use case:** when using array arguments/options I can't set them programmatically without getting errors about type mismatch (from the IDE). With this patch it now works as expected. Commits ------- 61529f3 [Console] fixed PHPDoc for setArgument/setOption in InputInterface
2 parents d32d768 + 61529f3 commit 1c759a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Console/Input/InputInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public function getArgument($name);
9090
/**
9191
* Sets an argument value by name.
9292
*
93-
* @param string $name The argument name
94-
* @param string $value The argument value
93+
* @param string $name The argument name
94+
* @param string|string[] $value The argument value
9595
*
9696
* @throws InvalidArgumentException When argument given doesn't exist
9797
*/
@@ -127,8 +127,8 @@ public function getOption($name);
127127
/**
128128
* Sets an option value by name.
129129
*
130-
* @param string $name The option name
131-
* @param string|bool $value The option value
130+
* @param string $name The option name
131+
* @param string|string[]|bool $value The option value
132132
*
133133
* @throws InvalidArgumentException When option given doesn't exist
134134
*/

0 commit comments

Comments
 (0)