Feature request
When you have a variable defined inside a if (count($array)) and do foreach ($array it would be great if PhpStan would not error as the $variable was defined inside the if statement:
https://phpstan.org/r/4db7dd72-54ac-4432-9104-24a5f29549b2
Maybe possible to fix it the same way as: https://github.com/phpstan/phpstan/releases/tag/0.12.64 was implemented.