Skip to content

Commit ea24e22

Browse files
committed
[TASK] Drop magic method forwarding in OutputFormat
1 parent 7e688fc commit ea24e22

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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)