-
Notifications
You must be signed in to change notification settings - Fork 50
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
Use trigger_error() for errors #174
Conversation
Hmm, |
I completely forgot about that deprecation. What do you think would be a good fit here? Using something like |
I think you can only pass |
You're right, again. And without
I'm trying to avoid switching Alternatively, I can add a some sort of generic |
Taking one step at a time is usually a good idea. :)
If that doesn't require more complex code changes, I'm fine with it. But don't waste too much time, if it is only an intermediate step. |
I am fine to use |
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.
It's just a deprecation (and we're just on 8.2 with the PHP systems), so I'm fine with this as an interim step to cleaning up the code.
Use
trigger_error()
for triggering the error handler for errors instead of the custom functionv()
.vsprintf()
is used with some errors as this function is used in functionv()
where formatted strings are being passed to the error handler.I think this change makes sense semantically and will help with separating the intertwined error handling/info message printing of
PhD
.