Skip to content

Commit

Permalink
Revert "fix: Remove the deprecation layer (#187)" (#204)
Browse files Browse the repository at this point in the history
This reverts commit 58fbdcd.
  • Loading branch information
theofidry authored Nov 18, 2023
1 parent 32d1637 commit 2edf1a9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/IO.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 2edf1a9

Please sign in to comment.