From 15be8fc4f1289e464fc716a7ed4a50f647f70211 Mon Sep 17 00:00:00 2001 From: Dan Horrigan Date: Sun, 21 Aug 2011 09:22:49 -0400 Subject: Changed the 'development' environment default error reporting to included E_STRICT errors. E_ALL does not include these errors. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index f4ac11a72..7555158a5 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,7 @@ if (defined('ENVIRONMENT')) switch (ENVIRONMENT) { case 'development': - error_reporting(E_ALL); + error_reporting(E_ALL | E_STRICT); break; case 'testing': -- cgit v1.2.3-24-g4f1b From 0e95b8b04f40739a26f9c945e61cedc61f4fe6c1 Mon Sep 17 00:00:00 2001 From: Dan Horrigan Date: Sun, 21 Aug 2011 09:34:02 -0400 Subject: Changed error reporting level to -1, which will show ALL PHP errors. This will future-proof the solution. Thanks @ericbarnes for pointing that out. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 7555158a5..899f4ce9b 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,7 @@ if (defined('ENVIRONMENT')) switch (ENVIRONMENT) { case 'development': - error_reporting(E_ALL | E_STRICT); + error_reporting(-1); break; case 'testing': -- cgit v1.2.3-24-g4f1b