dev/core#1093: Add Custom Fields to Logging Tables
[civicrm-core.git] / CRM / Core / Exception.php
index 7983228060cac481a50829f84b5a6e3bd95591fc..bafcb72355d8ea753c7874d944fd7210fd45733f 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -38,7 +38,7 @@
  *   Extra params to return. eg an extra array of ids. It is not mandatory, but can help the computer using the api. Keep in mind the api consumer isn't to be trusted. eg. the database password is NOT a good extra data.
  */
 class CRM_Core_Exception extends PEAR_Exception {
-  private $errorData = array();
+  private $errorData = [];
 
   /**
    * Class constructor.
@@ -48,9 +48,9 @@ class CRM_Core_Exception extends PEAR_Exception {
    * @param array $errorData
    * @param null $previous
    */
-  public function __construct($message, $error_code = 0, $errorData = array(), $previous = NULL) {
-    parent::__construct(ts($message));
-    $this->errorData = $errorData + array('error_code' => $error_code);
+  public function __construct($message, $error_code = 0, $errorData = [], $previous = NULL) {
+    parent::__construct($message);
+    $this->errorData = $errorData + ['error_code' => $error_code];
   }
 
   /**