Skip to content

Commit ed09dc1

Browse files
minor #41949 [Console] fix type annotations on InputInterface (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [Console] fix type annotations on InputInterface | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - `hasArgument` already accepts `string|int`. Makes sense? Commits ------- ab76477 [Console] fix type annotations on InputInterface
2 parents 7e78fb1 + ab76477 commit ed09dc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getArguments();
8383
/**
8484
* Returns the argument value for a given argument name.
8585
*
86-
* @param string $name The argument name
86+
* @param string|int $name The InputArgument name or position
8787
*
8888
* @return mixed
8989
*
@@ -94,8 +94,8 @@ public function getArgument($name);
9494
/**
9595
* Sets an argument value by name.
9696
*
97-
* @param string $name The argument name
98-
* @param mixed $value The argument value
97+
* @param string|int $name The InputArgument name or position
98+
* @param mixed $value The argument value
9999
*
100100
* @throws InvalidArgumentException When argument given doesn't exist
101101
*/

0 commit comments

Comments
 (0)