-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix return types in Query #115
Conversation
I don't think all of these are errors, but we should audit each of them regardless. Results from current
|
Yes, PHPStan gives you very good set of rules. It is for OOP only so it has some problems with procedural code. I do not dare to comment on personal preferences but defined( 'ABSPATH' ) || exit;
// should be properly written
if ( ! defined( 'ABSPATH' ) ) {
exit;
} Actually everything should be written properly :) meaning there are 10 ways a computer understands your code but PHPStan tells you which one to choose. I like it very much. |
This commit improves the consistency of some docs and return values across all files. See #115.
Reduced from 86 to 20. Gonna make more improvements incrementally. Thanks @szepeviktor 🚀 |
You're welcome. |
Please consider running