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); + } }