From f3d633c1e71a3b73e31451b60254e0c2b73db251 Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Tue, 15 Oct 2024 16:01:25 +0200 Subject: [PATCH] turn on error reporting while in development --- index.php | 5 +++-- src/Params/MissalsParams.php | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 04edd2c6..5539832e 100644 --- a/index.php +++ b/index.php @@ -12,8 +12,9 @@ use LiturgicalCalendar\Api\Router; -// error_reporting(E_ALL); -// ini_set('display_errors', 1); +error_reporting(E_ALL); +ini_set('display_errors', 1); + ini_set('date.timezone', 'Europe/Vatican'); require_once 'vendor/autoload.php'; diff --git a/src/Params/MissalsParams.php b/src/Params/MissalsParams.php index 7f8c203d..dbe6634f 100644 --- a/src/Params/MissalsParams.php +++ b/src/Params/MissalsParams.php @@ -78,6 +78,8 @@ public function setData(array $DATA = []) } } } + + /** * Could consider using these functions to set error, rather than using the Missals class produceErrorMessage * Then the Missals class would check, every time it sets params data: