src/PhpErrorController.php
public function on_exception( $e ) {

		// Log the PHP exception.
		do_action(
			\Inpsyde\Wonolog\LOG,
			new Log(
				$e->getMessage(),
				Logger::CRITICAL,
				Channels::PHP_ERROR,
				[
					'exception' => get_class( $e ),
					'file'      => $e->getFile(),
					'line'      => $e->getLine(),
					'trace'     => $e->getTraceAsString(),
				]
			)
		);

		// after logging let's reset handler and throw the exception
		restore_exception_handler();
		throw $e;
	}
public function on_exception( $e ) {

		// Log the PHP exception.
		do_action(
			\Inpsyde\Wonolog\LOG,
			new Log(
				$e->getMessage(),
				Logger::CRITICAL,
				Channels::PHP_ERROR,
				[
					'exception' => get_class( $e ),
					'file'      => $e->getFile(),
					'line'      => $e->getLine(),
					'trace'     => $e->getTraceAsString(),
				]
			)
		);

		// after logging let's reset handler and throw the exception
		restore_exception_handler();
		throw $e;
	}
public function on_exception ( $ e ) { // Log the PHP exception. do_action ( \ Inpsyde \ Wonolog \ LOG , new Log ( $ e -> getMessage ( ) , Logger :: CRITICAL , Channels :: PHP_ERROR , [ 'exception' => get_class ( $ e ) , 'file' => $ e -> getFile ( ) , 'line' => $ e -> getLine ( ) , 'trace' => $ e -> getTraceAsString ( ) , ] ) ) ; // after logging let's reset handler and throw the exception restore_exception_handler ( ) ; throw $ e ; }
Uncaught exception handler.

@param  \Throwable $e

@throws \Throwable
Uncaught exception handler .