dev/core#2240 - Convert remaining two deprecatedWarning calls #19266
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Follow-on to #19179. Converts remaining two civi.tag-deprecated to central function.
Technical Details
I left these out of the previous PR these mostly because I wasn't sure if these are deprecations or they should be actual exceptions. I'm still not sure.
The first one I can sort of see the argument if the system still functions without it.
The second one though I think there's a stronger reason to throw an exception instead, since it's 4 years old, and if there are still undeclared modules that seems like a real error now. Also, on a smaller note, for this one either way the concept of placeholders isn't supported so I've flattened the string.
So I dunno. I've left them as deprecations for now, but if people agree they should be exceptions instead it's an easy change.
Comments