MarcHenderkes Severity Code Description Project File Line Suppression State Warning PHP0421 The variable '$foo' is assigned, but its value is never used
JakubMisek Thanks; does the code look anything like this? <?php function test() { $foo = 123; return function () use ($foo) { }; }
JakubMisek I couldn't replicate it yet; note $foo should be reported if it is an unused parameter to a private function