Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Update README.md #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand 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);

Expand Down