Skip to content

Commit a92f9b3

Browse files
committed
fix example
1 parent cad644e commit a92f9b3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,11 @@ _**Console Access**_
361361
> composer require laminas/laminas-mvc-console --sort-packages
362362
> ```
363363
364-
| Command | Preview For |
365-
|-------------------------------------------|--------------|
366-
| php public/index.php error-preview | Exception |
367-
| php public/index.php error-preview error | Error |
368-
| php public/index.php error-preview notice | PHP E_NOTICE |
364+
| Command | Preview For |
365+
|--------------------------------------------|---------------|
366+
| php public/index.php error-preview | Exception |
367+
| php public/index.php error-preview error | Error |
368+
| php public/index.php error-preview warning | PHP E_WARNING |
369369
370370
You will get the following page if display_errors config is 0:
371371

src/Controller/ErrorPreviewConsoleController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public function errorAction()
2020
throw new Error('a sample error preview');
2121
}
2222

23-
public function noticeAction()
23+
public function warningAction()
2424
{
2525
$array = [];
26-
$array[1]; // E_NOTICE
26+
$array[1]; // E_WARNING
2727
}
2828
}

0 commit comments

Comments
 (0)