diff --git a/Classes/Middleware/AbstractMiddleware.php b/Classes/Middleware/AbstractMiddleware.php index 0f6bbff..158afd7 100644 --- a/Classes/Middleware/AbstractMiddleware.php +++ b/Classes/Middleware/AbstractMiddleware.php @@ -19,7 +19,7 @@ protected function responseIsAlterable(ResponseInterface $response): bool return false; } - if (!$GLOBALS['TSFE'] instanceof TypoScriptFrontendController) { // need for configuration + if (!$GLOBALS['TSFE'] instanceof TypoScriptFrontendController) { // need for configuration return false; } diff --git a/Classes/Resource/SvgFileRepository.php b/Classes/Resource/SvgFileRepository.php index fbeeb4b..0b06144 100644 --- a/Classes/Resource/SvgFileRepository.php +++ b/Classes/Resource/SvgFileRepository.php @@ -40,7 +40,7 @@ public function findAllByStorageUids(array $storageUids): \Traversable ), $queryBuilder->expr()->lt( 'sys_file.size', - $queryBuilder->createNamedParameter((int) $GLOBALS['TSFE']->config['config']['svgstore.']['fileSize'] ?? null, \TYPO3\CMS\Core\Database\Connection::PARAM_INT) + $queryBuilder->createNamedParameter((int) ($GLOBALS['TSFE']->config['config']['svgstore.']['fileSize'] ?? null), \TYPO3\CMS\Core\Database\Connection::PARAM_INT) ), $queryBuilder->expr()->eq( 'sys_file.mime_type', diff --git a/Classes/Service/RegExRepService.php b/Classes/Service/RegExRepService.php index 9311104..9cd35af 100644 --- a/Classes/Service/RegExRepService.php +++ b/Classes/Service/RegExRepService.php @@ -26,7 +26,7 @@ public function process(string $html): string } if (preg_match_all('/"([\w\-]+)\.";/', serialize(array_keys($config[$section])), $matches)) { - $cObj ??= $GLOBALS['TSFE']->cObj ?? GeneralUtility::makeInstance(ContentObjectRenderer::class); + $cObj ??= ($GLOBALS['TSFE']->cObj ?? GeneralUtility::makeInstance(ContentObjectRenderer::class)); foreach ($matches[1] as $key) { $config[$section][$key] = $cObj diff --git a/README.md b/README.md index 6296cd3..48b9bd8 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ## Version -#### >= 5.2.2 +#### >= 5.2.5 https://github.com/lochmueller/sourceopt/blob/173f7bd2a44b546844961ced1f0831371badd620/composer.json#L8-L9 #### <= 5.2.0 (legacy)