# Bug report phpstan gives error "Empty array passed to foreach." when used with array_unshift ### Code snippet that reproduces the problem https://phpstan.org/r/f5638662-c6d7-40c8-8f80-49fda9ceedea ### Expected output no error
Bug report
phpstan gives error "Empty array passed to foreach." when used with array_unshift
Code snippet that reproduces the problem
https://phpstan.org/r/f5638662-c6d7-40c8-8f80-49fda9ceedea
Expected output
no error