Skip to content

Commit

Permalink
Catch all errors by App handler incl. php notices (#1453)
Browse files Browse the repository at this point in the history
* Catch all errors by App handler incl. php notices

* improve constant loopkup
  • Loading branch information
mvorisek committed Sep 17, 2020
1 parent 3e0bec2 commit ee0cefd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,6 @@ class App
*/
public $call_exit = true;

/**
* Error types to be in set_error_handler.
*
* @var int
*/
protected $catch_error_types = E_ALL & ~E_NOTICE;

/**
* @var string|null
*/
Expand Down Expand Up @@ -207,7 +200,7 @@ public function __construct($defaults = [])
static function ($severity, $msg, $file, $line) {
throw new \ErrorException($msg, 0, $severity, $file, $line);
},
$this->catch_error_types
\E_ALL
);
}

Expand Down

0 comments on commit ee0cefd

Please sign in to comment.