From 2edf1a9afb3aa99fa96087b674325c39b6b626c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= <5175937+theofidry@users.noreply.github.com> Date: Sat, 18 Nov 2023 23:25:47 +0100 Subject: [PATCH] Revert "fix: Remove the deprecation layer (#187)" (#204) This reverts commit 58fbdcd6adef519bb92f2f82a2877824af9c125c. --- src/IO.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/IO.php b/src/IO.php index 5da9be8..7e592af 100644 --- a/src/IO.php +++ b/src/IO.php @@ -294,4 +294,30 @@ public function getTypedOption(string $name): TypedInput $name, ); } + + /** + * @param non-empty-string $name + */ + public function getArgument(string $name): TypedInput + { + Deprecation::trigger( + '::getArgument() will be reverted to return the traditional Symfony argument raw value. Use ::getTypedArgument() instead.', + '0.6.0', + ); + + return $this->getTypedArgument($name); + } + + /** + * @param non-empty-string $name + */ + public function getOption(string $name): TypedInput + { + Deprecation::trigger( + '::getArgument() will be reverted to return the traditional Symfony argument raw value. Use ::getTypedArgument() instead.', + '0.6.0', + ); + + return $this->getTypedOption($name); + } }