-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Declare ext/mysqli constants in stubs #8811
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
Conversation
Hi Mate, |
Hi Kamil, I'll do so so a bit later! Thanks! |
Not long ago, I added support for declaring global and class constants in stubs. My motivation was to 1.) make the generated class synopsis pages complete by including class constants 3.) make the registration and maintenance of constants easier 2.) expose the name and type of all constants for 3rd party tooling (e.g. PHPStan). The gotcha is that constant values cannot be declared in stubs as they mostly refer to C constant values (this is the Regarding your question about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just had the time to study this in more detail today and I finally understood what was going on with that MARIA constant. Please remove it altogether and adjust the test. This constant is impossible in PHP 8.2. We don't use mariadb libmysql anymore.
Everything else seems to be ok.
At last, I reverted 923920b because of the concerns with your PR. |
@kamil-tekiela Is my PR good to be merged? |
If you don't mind waiting for the resolution of my PR then let's merge this after my PR. Either the constant will be removed altogether or it should be marked as deprecated and its value set to false. I see no reason to define dummy constant |
I've just got rid of the dummy constant. You are right that it is not needed, and I'd like to merge the PR before yours, so that I can do a followup change (rename |
No description provided.