nette-intellij/intellij-latte

Foreach argument inspection triggered on doctrine Collection

Creeperface01 opened this issue · 1 comments

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

  1. Make a variable of type \Doctrine\Common\Collections\Collection
  2. Make a foreach loop

Screenshots
image

mesour commented

This inspection will be removed