diff --git a/README.md b/README.md index f4aa809c..2d8ea517 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/src/Controller/ErrorPreviewConsoleController.php b/src/Controller/ErrorPreviewConsoleController.php index ebbaf6b1..36bdf5fd 100644 --- a/src/Controller/ErrorPreviewConsoleController.php +++ b/src/Controller/ErrorPreviewConsoleController.php @@ -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 } }