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

Unused variables in foreach #2325

Closed
mitelg opened this issue Nov 12, 2019 · 3 comments
Closed

Unused variables in foreach #2325

mitelg opened this issue Nov 12, 2019 · 3 comments

Comments

@mitelg
Copy link
Contributor

mitelg commented Nov 12, 2019

hey guys,

according to this issue #540 there should be a possibility to name variables in a certain way, so that Psalm does not complain about them. It seems, that this feature was removed https://psalm.dev/r/44f857c752
Was this intended? Is there any other way to fix issues like this?

thanks and best regards 👋

@iluuu1994
Copy link
Contributor

Seems like it's broken for everything except for $_.

https://psalm.dev/r/88bfb0bab8

@muglug
Copy link
Collaborator

muglug commented Nov 12, 2019

The fix in #540 was just for unused params, but this is an easy change

@muglug muglug closed this as completed in 25b60eb Nov 12, 2019
@mitelg
Copy link
Contributor Author

mitelg commented Nov 12, 2019

thanks a lot @muglug 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants