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

Disallow use of "!" #128

Open
steevanbarboyon opened this issue Jun 28, 2021 · 2 comments
Open

Disallow use of "!" #128

steevanbarboyon opened this issue Jun 28, 2021 · 2 comments

Comments

@steevanbarboyon
Copy link

Hi ;)

As ! don't care about the type, it should be disallowed by phpstan/strict-rules no?

@ondrejmirtes
Copy link
Member

Hi, I don't know what you mean, can you post a phpstan.org example with expected output?

@dktapps
Copy link
Contributor

dktapps commented Jun 28, 2021

This sounds unnecessarily restrictive... requiring that the operand of ! be a boolean should be more than enough.

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

No branches or pull requests

3 participants