Skip to content
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

dev/core#128 Add deprecated warning helper function #12216

Merged
merged 1 commit into from
May 27, 2018

Conversation

mattwire
Copy link
Contributor

Overview

This adds a standard method to log a deprecated function warning.
Issue Ref: https://lab.civicrm.org/dev/core/issues/128
This replaces #12040

Before

Deprecated function warnings were inconsistent and you have to put too much detail in the log line.

After

One simple function that autogenerates the log message based on caller.

@eileenmcnaughton
Copy link
Contributor

OK I think this is fine & will be easier to use. I have a small doubt about the way we are parsing the string together but I think this is an improvement & it can be improved more later if we want.

@eileenmcnaughton eileenmcnaughton merged commit fdd7f6f into civicrm:master May 27, 2018
@mattwire mattwire deleted the dep_warning branch September 25, 2018 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants