coding-standard
coding-standard copied to clipboard
DisallowDirectMagicInvokeCallSniff wrong fix
$this->something->__invoke()
is fixed to
$this->something();
which is of course wrong because it will try to call the something() method on $this instead of the __invoke() method on $this->something. Expected fix would be:
($this->something)();