Deprecated function CRM_Core_BAO_Cache::cleanKey
Overview
Each cron call puts this warning into the Drupal dblog:
Deprecated function CRM_Core_BAO_Cache::cleanKey, use CRM_Utils_Cache::cleanKey. Array ( [civi.tag] => deprecated )
Reproduction steps
- Turn on strict error reporting, wait for next cron call.
Current behaviour
Each cron call puts the warning into the Drupal dblog.
Expected behaviour
Silence.
Environment information
- Browser: Safari 13
- CiviCRM: 5.29.1
- PHP: 7.3.9_
- CMS: Drupal 7.73
Comments
To fix, in file civicrm/CRM/Core/PrevNextCache/Sql.php, change line 279 from
1 => [CRM_Core_BAO_Cache::cleanKey('CiviCRM Search PrevNextCache'), 'String'],
to
1 => [CRM_Utils_Cache::cleanKey('CiviCRM Search PrevNextCache'), 'String'],