Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / debug / Debug.php
index 9404992d55241bdb80529be05be8c587e85f7d03..e3665ae5f40c893269e6e004c5cedc67205ea026 100644 (file)
@@ -31,7 +31,7 @@ class Debug
      * @param int  $errorReportingLevel The level of error reporting you want
      * @param bool $displayErrors       Whether to display errors (for development) or just log them (for production)
      */
-    public static function enable($errorReportingLevel = null, $displayErrors = true)
+    public static function enable($errorReportingLevel = E_ALL, $displayErrors = true)
     {
         if (static::$enabled) {
             return;
@@ -42,7 +42,7 @@ class Debug
         if (null !== $errorReportingLevel) {
             error_reporting($errorReportingLevel);
         } else {
-            error_reporting(-1);
+            error_reporting(E_ALL);
         }
 
         if ('cli' !== PHP_SAPI) {