Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commited09dc1

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 parents7e78fb1 +ab76477 commited09dc1

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 Theargument name
86+
* @param string|int $name TheInputArgument 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 Theargument name
98-
* @param mixed $value The argument value
97+
* @param string|int $name TheInputArgument 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)

[8]ページ先頭

©2009-2025 Movatter.jp