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

false positive: file_get_contents() on a separate line has no effect. #6009

Closed
verfriemelt-dot-org opened this issue Nov 14, 2021 · 3 comments

Comments

@verfriemelt-dot-org
Copy link
Contributor

verfriemelt-dot-org commented Nov 14, 2021

Bug report

file_get_contents can be useful while disregarding the return value.

Code snippet that reproduces the problem

link

Expected output

i think it should be acknowledged, that file_get_contents() can indeed have an effect.

Did PHPStan help you today? Did it make you happy in any way?

hell yeah :) loving it.

@canvural
Copy link
Contributor

Same request was declined a few days ago: #5970

@verfriemelt-dot-org
Copy link
Contributor Author

sorry, then i go ahead and close this one aswell, thought it might be possible, to have a "guess" at the context created and checking if its reaching out to URIs for example.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants