Skip to content

Commit

Permalink
Fix ctor arg order
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveRandom committed May 4, 2016
1 parent 9b1eab3 commit 4998f41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DecodeErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DecodeErrorException extends Exception

public function __construct(int $code, string $message, string $json)
{
parent::__construct($message, $code);
parent::__construct($code, $message);
$this->json = $json;
}

Expand Down
2 changes: 1 addition & 1 deletion src/EncodeErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class EncodeErrorException extends Exception

public function __construct(int $code, string $message, $value)
{
parent::__construct($message, $code);
parent::__construct($code, $message);
$this->value = $value;
}

Expand Down

0 comments on commit 4998f41

Please sign in to comment.