From a92f9b311b3fbc96141119dce90dfeb811ca05d1 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 26 Jun 2021 12:29:08 +0700 Subject: [PATCH] fix example --- README.md | 10 +++++----- src/Controller/ErrorPreviewConsoleController.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) 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 } }