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
Push deprecated warnings to log #2701
Conversation
I've logged all method calls. Defines are pretty hard to catch, so it's a can't do. I've also fixed some docs along the way. Fixes symphonycms#2693
* If `$writeToLog` is passed, this function will return boolean, otherwise | ||
* void | ||
*/ | ||
public function pushDeprecateWarningToLog($method, $alternative = null, array $opts = array()) |
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.
This is nice, only thing I can think of adding would be the removed version (if applicable). eg. The method
blahis deprecated and will be removed in v3.0.0. Please use
foo instead.
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.
Nice idea!
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.
As suggested by @brendo
I've logged all method calls. Defines are pretty hard to catch, so it's
a can't do. I've also fixed some docs along the way.
Fixes #2693
It also adds stack trace info in deprecate message