diff --git a/Classes/Twig/Extension/LinkExtension.php b/Classes/Twig/Extension/LinkExtension.php index 731976a..44dfeb7 100644 --- a/Classes/Twig/Extension/LinkExtension.php +++ b/Classes/Twig/Extension/LinkExtension.php @@ -176,7 +176,7 @@ private function makeRnbaseLink( $rnBaseLink->destination($arguments->getDestination()); } - if (($extTarget = $configurations->get($confId.$tsPath.'extTarget'))) { + if ($extTarget = $configurations->get($confId.$tsPath.'extTarget')) { $rnBaseLink->externalTargetAttribute($extTarget); } diff --git a/Classes/Twig/Extension/TSParserExtension.php b/Classes/Twig/Extension/TSParserExtension.php index adc82cf..add7644 100644 --- a/Classes/Twig/Extension/TSParserExtension.php +++ b/Classes/Twig/Extension/TSParserExtension.php @@ -309,7 +309,7 @@ protected function findSetup( // check the ts path and find the setup config foreach ($pathSegments as $segment) { - if (!array_key_exists(($segment.'.'), $setup)) { + if (!array_key_exists($segment.'.', $setup)) { $setup = false; break; } diff --git a/composer.json b/composer.json index b094b55..bfdee47 100644 --- a/composer.json +++ b/composer.json @@ -65,7 +65,13 @@ "vendor-dir": ".Build/vendor", "bin-dir": ".Build/bin", "preferred-install": { - "typo3/cms": "source" + "*": "dist" + }, + "allow-plugins": { + "typo3/cms-composer-installers": true, + "typo3/class-alias-loader": true, + "phpstan/extension-installer": true, + "cweagans/composer-patches": true } }, "scripts": {