Merge pull request #19441 from demeritcowboy/invalid-casetype-name
[civicrm-core.git] / CRM / Queue / ErrorPolicy.php
index 110e07bc919987a9038a1ecb378ca9bfd99b8e04..178591bbd209927dbea5a36fcc2660e8f883afad 100644 (file)
  * To ensure that PHP errors or unhandled exceptions are reported in JSON
  * format, wrap this around your code. For example:
  *
- * @code
+ * ```
  * $errorContainer = new CRM_Queue_ErrorPolicy();
  * $errorContainer->call(function() {
  *    ...include some files, do some work, etc...
  * });
- * @endcode
+ * ```
  *
  * Note: Most of the code in this class is pretty generic vis-a-vis error
  * handling -- except for 'reportError', whose message format is only
@@ -56,7 +56,6 @@ class CRM_Queue_ErrorPolicy {
     }
     set_error_handler([$this, 'onError'], $this->level);
     // FIXME make this temporary/reversible
-    $this->errorScope = CRM_Core_TemporaryErrorScope::useException();
   }
 
   /**