We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 521966c commit aedba29Copy full SHA for aedba29
src/OutputFormat.php
@@ -227,11 +227,7 @@ public function set($aNames, $mValue)
227
*/
228
public function __call(string $sMethodName, array $aArguments)
229
{
230
- if (\strpos($sMethodName, 'set') === 0) {
231
- return $this->set(\substr($sMethodName, 3), $aArguments[0]);
232
- } elseif (\strpos($sMethodName, 'get') === 0) {
233
- return $this->get(\substr($sMethodName, 3));
234
- } elseif (\method_exists(OutputFormatter::class, $sMethodName)) {
+ if (\method_exists(OutputFormatter::class, $sMethodName)) {
235
return \call_user_func_array([$this->getFormatter(), $sMethodName], $aArguments);
236
} else {
237
throw new \Exception('Unknown OutputFormat method called: ' . $sMethodName);
0 commit comments