intellij-latte
intellij-latte copied to clipboard
Foreach argument inspection triggered on doctrine Collection
Describe the bug
As far as I know latte supports all iterable types natively supported by PHP for loops so I assume this to be a bug. I haven't tested this deeply, but at least for doctrine collection I'm getting Invalid argument supplied to 'foreach' warning, which should be.
Environment (please complete the following information):
- PhpStorm version [2022.2]
- Plugin version [1.1.5]
To Reproduce
- Make a variable of type \Doctrine\Common\Collections\Collection
- Make a foreach loop
Screenshots

This inspection will be removed