# Bug report <!-- Before reporting an issue please check that you are using the latest PHPStan version! --> version: 0.12 <!-- Please describe your problem here. --> if the array is changed in a loop, we can't use simple comparison checks ### Code snippet that reproduces the problem <!-- Try to reproduce the issue you are facing using https://phpstan.org/ and post the unique URL here --> https://phpstan.org/r/29b7bf69-f82f-4ec0-b72b-8499de885544 ### Expected output <!-- Was the issue reported incorrectly? Or should PHPStan detect an issue with the code but doesn't? --> no error