From 5e01a9dad6dfa08dfeb4f19744ea4fc454d7025c Mon Sep 17 00:00:00 2001 From: Panagiotis Date: Sun, 22 Apr 2018 15:44:30 +0300 Subject: [PATCH] Update README.md Argument 3 passed to Hoa\Exception\Exception::__construct() must be of the type array --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a35aa93..10a7ff2 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ An exception is constitued of: Thus, the following example builds an exception: ```php -$exception = new Hoa\Exception\Exception('Hello %s!', 0, 'world'); +$exception = new Hoa\Exception\Exception('Hello %s!', 0, ['world']); ``` The exception message will be: `Hello world!`. The “raise” message (with all @@ -91,7 +91,7 @@ Previous exceptions are shown too, for instance: ```php $previous = new Hoa\Exception\Exception('Hello previous.'); -$exception = new Hoa\Exception\Exception('Hello %s!', 0, 'world', $previous); +$exception = new Hoa\Exception\Exception('Hello %s!', 0, ['world'], $previous); echo $exception->raise(true);