src/StaticApplicationAbstract.php
public function handleError($code, $message, $file, $line)
    {
        if (error_reporting() & $code) {
            /** @var Reaction\Base\Logger\StdioLogger $logger */
            $logger = Reaction::$app->logger;
            $reportMessage = $message;
            if (!$logger->withLineNum) {
                $reportMessage .= "\n" . $file;
                $reportMessage .= ":" . $line;
            }
            list($level, $format) = $this->getErrorLogLevel($code);
            $format = is_array($format) ? $format : [$format];
            $reportMessage = Console::ansiFormat('[' . strtoupper($level) . '] ' . $reportMessage, $format);
            if (Reaction::isDebug()) {
                $trace = Debugger::reduceBacktrace(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), true);
                $num = count($trace);
                foreach ($trace as $row) {
                    $reportMessage .= "\n $num - " . $row['file'] . ":" . $row['line'];
                    --$num;
                }
            }
            $logger->logRaw($reportMessage, [], 1);
        }
    }
public function handleError($code, $message, $file, $line)
    {
        if (error_reporting() & $code) {
            /** @var Reaction\Base\Logger\StdioLogger $logger */
            $logger = Reaction::$app->logger;
            $reportMessage = $message;
            if (!$logger->withLineNum) {
                $reportMessage .= "\n" . $file;
                $reportMessage .= ":" . $line;
            }
            list($level, $format) = $this->getErrorLogLevel($code);
            $format = is_array($format) ? $format : [$format];
            $reportMessage = Console::ansiFormat('[' . strtoupper($level) . '] ' . $reportMessage, $format);
            if (Reaction::isDebug()) {
                $trace = Debugger::reduceBacktrace(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), true);
                $num = count($trace);
                foreach ($trace as $row) {
                    $reportMessage .= "\n $num - " . $row['file'] . ":" . $row['line'];
                    --$num;
                }
            }
            $logger->logRaw($reportMessage, [], 1);
        }
    }
Handles PHP execution errors such as warnings and notices.

@param int $code the level of the error raised.
@param string $message the error message.
@param string $file the filename that the error was raised in.
@param int $line the line number the error was raised at.