-
Notifications
You must be signed in to change notification settings - Fork 6
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
wp_die() and PHPStan #96
Comments
If you keep the non-phpstan-specific return as well (so that other tools keep working), then adding this is absolutely ok. 2 questions:
Thanks! |
Good!
I'm gonna make a PR with a |
Well, actually I commited a
|
I think if it passes CI...
I think putting |
PHPStan rule can indeed be disabled, but it would disable also proper issues at the same time. I therefore used the |
Hmm, that makes sense... And putting |
Adding an Closing due to the discussion in PR. |
I haven't found any phpstan specific instruction in the stubs, so I would like to ask you wether it's ok to add the following comment for wp_die():
Without it, PHPStan doesn't understand that wp_die() is an exiting function.
The text was updated successfully, but these errors were encountered: