Skip to content

Commit

Permalink
Fix #35385: Fix Console typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchRanger committed Jan 19, 2020
1 parent 062fa14 commit 345ab6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Input/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function getArguments()
/**
* {@inheritdoc}
*/
public function getArgument($name)
public function getArgument(string $name)
{
if (!$this->definition->hasArgument($name)) {
throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
Expand All @@ -116,7 +116,7 @@ public function getArgument($name)
/**
* {@inheritdoc}
*/
public function setArgument($name, $value)
public function setArgument(string $name, $value)
{
if (!$this->definition->hasArgument($name)) {
throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
Expand Down

0 comments on commit 345ab6e

Please sign in to comment.