Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20424

Set up method for marking code as deprecated

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.19
    • Fix Version/s: 4.7.19
    • Component/s: Core CiviCRM
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      We seem to be finding people are adding calls to deprecated code despite code comments. Instead lets find a way to mark parts of code so they fail tests!

       

      Currently looking at a format like 

      Civi::log()->warning('Deprecated function, use CRM_Core_Pseudoconsant::getKey', array(
      'civi.tag' => 'deprecated',
      ));

       

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: