Yes, I'm using the version 1.51
I tried to create a small example to recreate this problem and I couldn't get it on the first try.
So I took one more look into my bigger class and I found out that this problem appears in one function which I've disabled for now by placing a return as first line.
That means that the shown error is much less critical but also not correct.
So this example should show the error:
function test()
{
return;
$somethingElse = 1; // Unreachable warning shown here
$filter = [1, 2, 3];
$a = [1, 2, 3];
foreach ($filter as $f)
{
$b = array_filter($a, fn($v) => $v === $f);
}
}