Severity Code Description Project File Line Suppression State Warning PHP0421 The variable '$foo' is assigned, but its value is never used
Thanks; does the code look anything like this?
<?php function test() { $foo = 123; return function () use ($foo) { }; }
yes exactly, same thing also happens if $foo is a parameter to $test though
I couldn't replicate it yet;
note $foo should be reported if it is an unused parameter to a private function
$foo
Doesn't happen to me anymore either. This may be closed, thanks!
thanks!