We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ddedf4 commit 1f66418Copy full SHA for 1f66418
1 file changed
src/Zack.php
@@ -34,6 +34,10 @@ public function run(): void
34
ini_set('log_errors', $this->config->php->logErrors ? '1' : '0');
35
ini_set('error_log', $this->config->php->errorLog);
36
37
+ set_error_handler(function (int $severity, string $message, string $file = '', int $line = 0) {
38
+ throw new \ErrorException($message, 0, $severity, $file, $line);
39
+ }, $this->config->php->errorReporting);
40
+
41
$this->initContainer();
42
43
$request = HttpFoundation\Request::createFromGlobals();
0 commit comments