src/php/main/Eix/Core/Application.php
public function handleError($number, $message, $file, $line, array $context)
    {
        // This avoids silenced (@'ed) errors from being reported.
        if (error_reporting()) {
            $message = "PHP error $number: $message\n\tat $file:$line";
            Logger::get()->error($message);
            $this->handleException(new \RuntimeException($message));
        }
    }
public function handleError($number, $message, $file, $line, array $context)
    {
        // This avoids silenced (@'ed) errors from being reported.
        if (error_reporting()) {
            $message = "PHP error $number: $message\n\tat $file:$line";
            Logger::get()->error($message);
            $this->handleException(new \RuntimeException($message));
        }
    }
public function handleError ( $ number , $ message , $ file , $ line , array $ context ) { // This avoids silenced (@'ed) errors from being reported. if ( error_reporting ( ) ) { $ message = "PHP error $number: $message\n\tat $file:$line" ; Logger :: get ( ) -> error ( $ message ) ; $ this -> handleException ( new \ RuntimeException ( $ message ) ) ; } }
Eix's way of handling a PHP error is to wrap it in a runtime exception
and throw it, so that the standard exception handler can catch it.
Eix s way of handling a PHP error is to wrap it in a runtime exception and throw it so that the standard exception handler can catch it .