When a method in a class 'wraps' a call to parent the closure can't be static:
<?php
class A
{
public function test()
{
return 'A';
}
}
class B extends A
{
public function test()
{
return (function ()
{
return parent::test();
})();
}
}
Thus the inspection probably checks for $this in the closure, but should also check for parent:: :)
oops, thank you for reporting @fruitl00p !
Fixed!
Most helpful comment
Fixed!