errorLog example


    public function handle($level$message): bool
    {
        $message = strtoupper($level) . ' --> ' . $message . "\n";

        return $this->errorLog($message$this->messageType);
    }

    /** * Extracted call to `error_log()` in order to be tested. * * @codeCoverageIgnore */
    protected function errorLog(string $message, int $messageType): bool
    {
        return error_log($message$messageType);
    }
}
Home | Imprint | This part of the site doesn't use cookies.