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

Incompatible usages of callable param- tags should be reported as errors #10934

Open
stof opened this issue Apr 25, 2024 · 1 comment
Open

Incompatible usages of callable param- tags should be reported as errors #10934

stof opened this issue Apr 25, 2024 · 1 comment

Comments

@stof
Copy link
Contributor

stof commented Apr 25, 2024

Feature request

A callable parameter cannot be both later-invoked and immediately-invoked (the right way to represent a case where it can be used in both ways is to omit those tags, not to apply both).

https://phpstan.org/r/10b54c06-ac6d-4da8-ba81-3dc706f9ee71 should report an error about applying both tags on the $a parameter.

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

No response

@ondrejmirtes
Copy link
Member

Currently we're not even reporting duplicate @param tags.

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

2 participants