aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 15:08:18 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 15:08:18 +0100
commit243080af80098bf8e1ad61455d16f2acaa7fd49f (patch)
treea611be2404947b67243e055d5aa369c8666bd0bc
parentcd4fa9fc81fd930dcf3bfbc65becaefc538b1934 (diff)
downloadException-243080af80098bf8e1ad61455d16f2acaa7fd49f.zip
Exception-243080af80098bf8e1ad61455d16f2acaa7fd49f.tar.gz
Exception-243080af80098bf8e1ad61455d16f2acaa7fd49f.tar.bz2
chore(php) Fix types.
-rw-r--r--Source/Exception.php2
-rw-r--r--Source/Idle.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Exception.php b/Source/Exception.php
index 54d0dce..3171825 100644
--- a/Source/Exception.php
+++ b/Source/Exception.php
@@ -56,7 +56,7 @@ class Exception extends Idle implements Event\Source
public function __construct(
string $message,
int $code = 0,
- array $arguments = [],
+ $arguments = [],
\Throwable $previous = null
) {
parent::__construct($message, $code, $arguments, $previous);
diff --git a/Source/Idle.php b/Source/Idle.php
index 623cb52..9febd53 100644
--- a/Source/Idle.php
+++ b/Source/Idle.php
@@ -81,8 +81,8 @@ class Idle extends \Exception
*/
public function __construct(
string $message,
- int $code = 0,
- /* array|string */ $arguments = [],
+ int $code = 0,
+ $arguments = [],
\Exception $previous = null
) {
$this->_tmpArguments = $arguments;