-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Document MySQL error codes #3795
Conversation
18835e6
to
a31329a
Compare
Not sure how to fix the
This contradiction only occurs when a comment is on the same line as the |
Why not define the codes as constants instead of comments? |
It's a possibility, it just adds a bit of burden for something that's not going to be reused anywhere IMHO. If you wish to proceed this way, please tell me where they should go:
|
@BenMorel I'd suggest private constants in |
Here you are! |
It's not about reuse. It's about self-documenting code.
Thank you. Could you please also move the dbal/lib/Doctrine/DBAL/SQLParserUtils.php Lines 34 to 42 in c104c68
And then squash. |
Is this |
This is/was actively used in PEAR, athough I'm not sure if it's part of the phpDoc standard. UPD: it's called a DocBlock template. |
6fc7193
to
6e5a9f2
Compare
@morozov All done! |
Thanks @BenMorel! 🚢 |
Summary
Documents mysql error codes for easier reading.
References: