diff --git a/Build/phpstan11.neon b/Build/phpstan11.neon index 649a756..c77cdb9 100644 --- a/Build/phpstan11.neon +++ b/Build/phpstan11.neon @@ -6,3 +6,5 @@ parameters: - %currentWorkingDirectory%/Classes excludePaths: - %currentWorkingDirectory%/Classes/Listener/AfterCacheableContentIsGenerated.php + ignoreErrors: + - '#.*unknown class TYPO3\\CMS\\Core\\TypoScript\\FrontendTypoScript.#' diff --git a/Classes/AssetCollector.php b/Classes/AssetCollector.php index 880d9df..6887443 100644 --- a/Classes/AssetCollector.php +++ b/Classes/AssetCollector.php @@ -13,8 +13,10 @@ */ use B13\Assetcollector\Resource\ResourceCompressor; +use Psr\Http\Message\ServerRequestInterface; use TYPO3\CMS\Core\Information\Typo3Version; use TYPO3\CMS\Core\SingletonInterface; +use TYPO3\CMS\Core\TypoScript\FrontendTypoScript; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\PathUtility; use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController; @@ -218,6 +220,7 @@ public function buildInlineXmlTag(): string . ''; } } + if (trim($inlineXml) !== '') { return '