public function collect(Request $request, Response $response, \Exception $exception = null): void
    {
        try {
            $version = PackageUtil::getVersion('contao/core-bundle');
        } catch (\OutOfBoundsException $e) {
            $version = PackageUtil::getVersion('contao/contao');
        }

        $this->data = ['contao_version' => $version];

        $this->addSummaryData();

        if (isset($GLOBALS['TL_DEBUG'])) {
            $this->data = array_merge($this->data, $GLOBALS['TL_DEBUG']);
        }
    }
public function collect(Request $request, Response $response, \Exception $exception = null): void
    {
        try {
            $version = PackageUtil::getVersion('contao/core-bundle');
        } catch (\OutOfBoundsException $e) {
            $version = PackageUtil::getVersion('contao/contao');
        }

        $this->data = ['contao_version' => $version];

        $this->addSummaryData();

        if (isset($GLOBALS['TL_DEBUG'])) {
            $this->data = array_merge($this->data, $GLOBALS['TL_DEBUG']);
        }
    }
{@inheritdoc}