diff --git a/CHANGELOG.md b/CHANGELOG.md index 1db80aff..000ccf47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ Please also have a look at our ### Removed +- Drop magic method forwarding in `OutputFormat` (#898) - Drop `atRuleArgs()` from the `AtRule` interface (#1141) - Remove `OutputFormat::get()` and `::set()` (#1108, #1110) - Drop special support for vendor prefixes (#1083) diff --git a/src/OutputFormat.php b/src/OutputFormat.php index 225dab9c..a0e8b894 100644 --- a/src/OutputFormat.php +++ b/src/OutputFormat.php @@ -180,24 +180,6 @@ final class OutputFormat */ private $indentationLevel = 0; - /** - * @param non-empty-string $methodName - * @param array $arguments - * - * @return mixed - * - * @throws \Exception - */ - public function __call(string $methodName, array $arguments) - { - if (\method_exists(OutputFormatter::class, $methodName)) { - // @deprecated since 8.8.0, will be removed in 9.0.0. Call the method on the formatter directly instead. - return \call_user_func_array([$this->getFormatter(), $methodName], $arguments); - } else { - throw new \Exception('Unknown OutputFormat method called: ' . $methodName); - } - } - /** * @internal */