Skip to content

Commit 38de556

Browse files
authored
[TASK] Drop magic method forwarding in OutputFormat (#898)
1 parent d7c6181 commit 38de556

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Please also have a look at our
4848

4949
### Removed
5050

51+
- Drop magic method forwarding in `OutputFormat` (#898)
5152
- Drop `atRuleArgs()` from the `AtRule` interface (#1141)
5253
- Remove `OutputFormat::get()` and `::set()` (#1108, #1110)
5354
- Drop special support for vendor prefixes (#1083)

src/OutputFormat.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -180,24 +180,6 @@ final class OutputFormat
180180
*/
181181
private $indentationLevel = 0;
182182

183-
/**
184-
* @param non-empty-string $methodName
185-
* @param array<array-key, mixed> $arguments
186-
*
187-
* @return mixed
188-
*
189-
* @throws \Exception
190-
*/
191-
public function __call(string $methodName, array $arguments)
192-
{
193-
if (\method_exists(OutputFormatter::class, $methodName)) {
194-
// @deprecated since 8.8.0, will be removed in 9.0.0. Call the method on the formatter directly instead.
195-
return \call_user_func_array([$this->getFormatter(), $methodName], $arguments);
196-
} else {
197-
throw new \Exception('Unknown OutputFormat method called: ' . $methodName);
198-
}
199-
}
200-
201183
/**
202184
* @internal
203185
*/

0 commit comments

Comments
 (0)