coding-standard icon indicating copy to clipboard operation
coding-standard copied to clipboard

DisallowDirectMagicInvokeCallSniff wrong fix

Open enumag opened this issue 3 years ago • 0 comments

$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)();

enumag avatar Dec 22 '21 08:12 enumag