X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FQueue%2FErrorPolicy.php;h=178591bbd209927dbea5a36fcc2660e8f883afad;hb=696dcdc9da5871ae3f30c53fcf56c1d4cc838e91;hp=110e07bc919987a9038a1ecb378ca9bfd99b8e04;hpb=d5fd88834139d3bd5be9a170e5689c50c42783e3;p=civicrm-core.git diff --git a/CRM/Queue/ErrorPolicy.php b/CRM/Queue/ErrorPolicy.php index 110e07bc91..178591bbd2 100644 --- a/CRM/Queue/ErrorPolicy.php +++ b/CRM/Queue/ErrorPolicy.php @@ -13,12 +13,12 @@ * 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(); } /**