From 345ab6ecb456b5147ea3b3271d7f1f00aadfd257 Mon Sep 17 00:00:00 2001 From: Dmitry Danilson Date: Sun, 19 Jan 2020 18:13:19 +0700 Subject: [PATCH] Fix #35385: Fix Console typehint --- Input/Input.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Input/Input.php b/Input/Input.php index 8c7905db7..ff5d3170f 100644 --- a/Input/Input.php +++ b/Input/Input.php @@ -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)); @@ -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));