src/Viserio/Component/View/Engine/PhpEngine.php
public function get(array $fileInfo, array $data = []): string
    {
        $obLevel = \ob_get_level();

        \ob_start();

        // We'll evaluate the contents of the view inside a try/catch block so we can
        // clear out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        \extract($data, \EXTR_PREFIX_SAME, 'narrowspark');

        try {
            require $fileInfo['path'];
        } catch (Throwable $exception) {
            $this->handleViewException(
                $this->getErrorException($exception),
                $obLevel
            );
        }

        // @codeCoverageIgnoreStart
        // Return temporary output buffer content, destroy output buffer
        return \ltrim(\ob_get_clean());
        // @codeCoverageIgnoreEnd
    }
public function get(array $fileInfo, array $data = []): string
    {
        $obLevel = \ob_get_level();

        \ob_start();

        // We'll evaluate the contents of the view inside a try/catch block so we can
        // clear out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        \extract($data, \EXTR_PREFIX_SAME, 'narrowspark');

        try {
            require $fileInfo['path'];
        } catch (Throwable $exception) {
            $this->handleViewException(
                $this->getErrorException($exception),
                $obLevel
            );
        }

        // @codeCoverageIgnoreStart
        // Return temporary output buffer content, destroy output buffer
        return \ltrim(\ob_get_clean());
        // @codeCoverageIgnoreEnd
    }
{@inheritdoc}