phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Don't report "is always true/false" for conditionally defined variables

Open staabm opened this issue 1 year ago • 2 comments

closes https://github.com/phpstan/phpstan/issues/6830

staabm avatar Nov 02 '24 13:11 staabm

This pull request has been marked as ready for review.

phpstan-bot avatar Nov 02 '24 13:11 phpstan-bot

The bug here is that PHPStan complains about "maybe undefined variable". Which it does only in foreach: https://phpstan.org/r/f934106d-8765-4463-8344-40b1c64ffc37

ondrejmirtes avatar Nov 02 '24 13:11 ondrejmirtes