Skip to content

Civix could (or should?) offer in-line-replacements for dropped deprecated functions #296

@bjendres

Description

@bjendres

CiviCRM core dropped the (long deprecated) CRM_Core_OptionGroup::getValue with version 5.60, which caused a bit of havoc for us (see e.g. here). Sure, we could've replaced this a long time ago, but then again there was no deadline... so it never ended up at the top of anyone's list.

What we did, is to add a drop-in replacement functions in the extension's code, so the act of making the extension compatible is really easy, see here. We put the code into our CustomDataHelper, which is essentially a poor man's civix mixin (plus some other stuff).

I think, a far better place for the implementation of such drop-in function replacements would be civix.

It could even apply the replacement of deprecated functions within the civix upgrade process.

@totten what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions