Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jun 26, 2021
1 parent cad644e commit a92f9b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,11 @@ _**Console Access**_
> composer require laminas/laminas-mvc-console --sort-packages
> ```
| Command | Preview For |
|-------------------------------------------|--------------|
| php public/index.php error-preview | Exception |
| php public/index.php error-preview error | Error |
| php public/index.php error-preview notice | PHP E_NOTICE |
| Command | Preview For |
|--------------------------------------------|---------------|
| php public/index.php error-preview | Exception |
| php public/index.php error-preview error | Error |
| php public/index.php error-preview warning | PHP E_WARNING |
You will get the following page if display_errors config is 0:
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/ErrorPreviewConsoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public function errorAction()
throw new Error('a sample error preview');
}

public function noticeAction()
public function warningAction()
{
$array = [];
$array[1]; // E_NOTICE
$array[1]; // E_WARNING
}
}

0 comments on commit a92f9b3

Please sign in to comment.