Skip to content

Commit 4998f41

Browse files
committed
Fix ctor arg order
1 parent 9b1eab3 commit 4998f41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DecodeErrorException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DecodeErrorException extends Exception
1313

1414
public function __construct(int $code, string $message, string $json)
1515
{
16-
parent::__construct($message, $code);
16+
parent::__construct($code, $message);
1717
$this->json = $json;
1818
}
1919

src/EncodeErrorException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class EncodeErrorException extends Exception
1313

1414
public function __construct(int $code, string $message, $value)
1515
{
16-
parent::__construct($message, $code);
16+
parent::__construct($code, $message);
1717
$this->value = $value;
1818
}
1919

0 commit comments

Comments
 (0)