Skip to content

Commit

Permalink
Merge pull request #13263 from eileenmcnaughton/api_ex
Browse files Browse the repository at this point in the history
dev/core#592 Add default for  in Exception class.
  • Loading branch information
seamuslee001 authored Dec 13, 2018
2 parents b86845e + bc27f51 commit 78a3f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class CiviCRM_API3_Exception extends Exception {
* @param Exception|NULL $previous
* A previous exception which caused this new exception.
*/
public function __construct($message, $error_code, $extraParams = array(), Exception $previous = NULL) {
public function __construct($message, $error_code = 0, $extraParams = array(), Exception $previous = NULL) {
parent::__construct(ts($message));
$this->extraParams = $extraParams + array('error_code' => $error_code);
}
Expand Down

0 comments on commit 78a3f61

Please sign in to comment.