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 82ac96d commit 04197aaCopy full SHA for 04197aa
src/OutputFormat.php
@@ -225,11 +225,7 @@ public function set($aNames, $mValue)
225
*/
226
public function __call(string $sMethodName, array $aArguments)
227
{
228
- if (\strpos($sMethodName, 'set') === 0) {
229
- return $this->set(\substr($sMethodName, 3), $aArguments[0]);
230
- } elseif (\strpos($sMethodName, 'get') === 0) {
231
- return $this->get(\substr($sMethodName, 3));
232
- } elseif (\method_exists(OutputFormatter::class, $sMethodName)) {
+ if (\method_exists(OutputFormatter::class, $sMethodName)) {
233
return \call_user_func_array([$this->getFormatter(), $sMethodName], $aArguments);
234
} else {
235
throw new \Exception('Unknown OutputFormat method called: ' . $sMethodName);
0 commit comments