Skip to content

Commit

Permalink
Don't mutate native Exception class properties (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurk91 authored and brandur-stripe committed Nov 12, 2018
1 parent 77eb5bb commit b48c8da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Error/OAuth/OAuthBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ public function __construct(
$httpHeaders = null
) {
parent::__construct($description, $httpStatus, $httpBody, $jsonBody, $httpHeaders);
$this->code = $code;
$this->errorCode = $code;
}

public function getErrorCode()
{
return $this->code;
return $this->errorCode;
}
}

0 comments on commit b48c8da

Please sign in to comment.