Fix Core\ErrorHandler
For errors in the engine config file.
This commit is contained in:
parent
f6dfd6fdcd
commit
c0be6d857d
1 changed files with 4 additions and 1 deletions
|
@ -168,7 +168,10 @@ class ErrorHandler
|
|||
$useErrLog = true;
|
||||
|
||||
try {
|
||||
if (! $this->c->Log instanceof NullLogger) {
|
||||
if (
|
||||
$this->c instanceof Container
|
||||
&& ! $this->c->Log instanceof NullLogger
|
||||
) {
|
||||
$context = [];
|
||||
$method = $this->type[$error['type']][1] ?? $this->type[0][1];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue