Skip to content

Commit 3cc8502

Browse files
author
Root
committed
Changed to show all the errors on dev
1 parent 99e602d commit 3cc8502

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

index.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,16 @@
5252
* By default development will show errors but testing and live will hide them.
5353
*/
5454

55-
// By default show all except notifications, deprecated and strict errors
56-
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT);
57-
58-
// Show or hide errors depending on current environment
5955
switch (ENVIRONMENT)
6056
{
6157
case 'development':
58+
error_reporting(E_ALL);
6259
ini_set('display_errors', 1);
6360
break;
6461

6562
case 'testing':
6663
case 'production':
64+
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT);
6765
ini_set('display_errors', 0);
6866
break;
6967

0 commit comments

Comments
 (0)