Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreach argument inspection triggered on doctrine Collection #199

Open
Creeperface01 opened this issue Aug 1, 2022 · 1 comment
Open
Labels
bug EAP This is being considered for the next EAP version

Comments

@Creeperface01
Copy link

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 mesour added bug EAP This is being considered for the next EAP version labels Sep 24, 2023
@mesour
Copy link
Collaborator

mesour commented Sep 24, 2023

This inspection will be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug EAP This is being considered for the next EAP version
Projects
None yet
Development

No branches or pull requests

2 participants