Skip to content

Commit 345ab6e

Browse files
committed
Fix #35385: Fix Console typehint
1 parent 062fa14 commit 345ab6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Input/Input.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getArguments()
104104
/**
105105
* {@inheritdoc}
106106
*/
107-
public function getArgument($name)
107+
public function getArgument(string $name)
108108
{
109109
if (!$this->definition->hasArgument($name)) {
110110
throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
@@ -116,7 +116,7 @@ public function getArgument($name)
116116
/**
117117
* {@inheritdoc}
118118
*/
119-
public function setArgument($name, $value)
119+
public function setArgument(string $name, $value)
120120
{
121121
if (!$this->definition->hasArgument($name)) {
122122
throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));

0 commit comments

Comments
 (0)