We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a215373 commit b7b5f9bCopy full SHA for b7b5f9b
1 file changed
src/ErrorHandler.php
@@ -29,11 +29,14 @@ public static function handle()
29
}
30
31
/**
32
- * Errors to Exceptions.
+ * @param $code
33
+ * @param $message
34
+ *
35
+ * @throws \Exception
36
*/
37
public static function errorToException($code, $message)
38
{
- if (!(error_reporting() & $err_no)) {
39
+ if (!(error_reporting() & $code)) {
40
return; // Silenced
41
42
0 commit comments