intellij-latte icon indicating copy to clipboard operation
intellij-latte copied to clipboard

Foreach argument inspection triggered on doctrine Collection

Open Creeperface01 opened this issue 3 years ago • 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

Creeperface01 avatar Aug 01 '22 07:08 Creeperface01

This inspection will be removed

mesour avatar Sep 24 '23 00:09 mesour