From 7e34b1dcf82c189847b73ea989b05fab00626569 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 10 Feb 2025 10:14:54 +0100 Subject: [PATCH] [TASK] Drop magic method forwarding in `OutputFormat` --- CHANGELOG.md | 1 + src/OutputFormat.php | 18 ------------------ 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1db80affd..000ccf475 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 225dab9c1..a0e8b8947 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 */