Merge pull request #19766 from WeMoveEU/faster-select2-groups
[civicrm-core.git] / CRM / Core / Error.php
index 1aa9733b5d44f348090092a16b4f777b92e89878..0d15f3006ee94b283981b80e2d0761598ce2f6ee 100644 (file)
@@ -1047,7 +1047,10 @@ class CRM_Core_Error extends PEAR_ErrorStack {
    * @param string $message
    */
   public static function deprecatedWarning($message) {
+    // Even though the tag is no longer used within the log() function,
+    // \Civi\API\LogObserver instances may still be monitoring it.
     Civi::log()->warning($message, ['civi.tag' => 'deprecated']);
+    trigger_error($message, E_USER_DEPRECATED);
   }
 
 }