Security update for Core, with self-updated composer
[yaffs-website] / vendor / psy / psysh / src / Psy / Exception / ErrorException.php
index 66c172c6ceeb247a74bb8e5514245f2a50507311..85820ac8c24a567ff670b892ad6ce367c8d47c5d 100644 (file)
@@ -37,19 +37,33 @@ class ErrorException extends \ErrorException implements Exception
         }
 
         switch ($severity) {
+            case E_STRICT:
+                $type = 'Strict error';
+                break;
+
+            case E_NOTICE:
+            case E_USER_NOTICE:
+                $type = 'Notice';
+                break;
+
             case E_WARNING:
             case E_CORE_WARNING:
             case E_COMPILE_WARNING:
             case E_USER_WARNING:
-                $type = 'warning';
+                $type = 'Warning';
                 break;
 
-            case E_STRICT:
-                $type = 'Strict error';
+            case E_DEPRECATED:
+            case E_USER_DEPRECATED:
+                $type = 'Deprecated';
+                break;
+
+            case E_RECOVERABLE_ERROR:
+                $type = 'Recoverable fatal error';
                 break;
 
             default:
-                $type = 'error';
+                $type = 'Error';
                 break;
         }