src/PeekAndPoke/Aviator/ErrorHandling/LiveErrorHandler.php
public function onError($errType, $errStr, $errFile, $errLine)
    {
        if (in_array(
            $errType,
            [
                E_STRICT,
                E_NOTICE,
                E_WARNING,
                E_DEPRECATED,
                E_USER_NOTICE,
                E_USER_WARNING,
                E_USER_DEPRECATED,
                E_CORE_WARNING,
                E_COMPILE_WARNING,
            ],
            false)
        ) {
            return true;
        }

        $backtrace       = debug_backtrace();
        $this->lastError = new Error($errType, $errStr, $errFile, $errLine, $backtrace);
        error_clear_last();

        return false;
    }
public function onError($errType, $errStr, $errFile, $errLine)
    {
        if (in_array(
            $errType,
            [
                E_STRICT,
                E_NOTICE,
                E_WARNING,
                E_DEPRECATED,
                E_USER_NOTICE,
                E_USER_WARNING,
                E_USER_DEPRECATED,
                E_CORE_WARNING,
                E_COMPILE_WARNING,
            ],
            false)
        ) {
            return true;
        }

        $backtrace       = debug_backtrace();
        $this->lastError = new Error($errType, $errStr, $errFile, $errLine, $backtrace);
        error_clear_last();

        return false;
    }
{@inheritdoc}