src/Valkyrja/Debug/ExceptionHandler.php
public function handleShutdown(): void
    {
        $error = error_get_last();

        if (
            null !== $error &&
            \in_array(
                $error['type'],
                [
                    E_ERROR,
                    E_CORE_ERROR,
                    E_COMPILE_ERROR,
                    E_PARSE,
                ],
                true
            )
        ) {
            $this->handleException($this->fatalExceptionFromError($error));
        }
    }
public function handleShutdown(): void
    {
        $error = error_get_last();

        if (
            null !== $error &&
            \in_array(
                $error['type'],
                [
                    E_ERROR,
                    E_CORE_ERROR,
                    E_COMPILE_ERROR,
                    E_PARSE,
                ],
                true
            )
        ) {
            $this->handleException($this->fatalExceptionFromError($error));
        }
    }
Handle the PHP shutdown event.

@return void