From f373826cc6b00dd548ba8863e364f92d6360d062 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sun, 9 Apr 2017 12:51:57 +0200 Subject: [PATCH] BUGFIX: Update string to replace missing vendor token * Using double quotes with method call didn't work the way. * Use normal string concatenation instead. --- .../LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Standards/Typo3Update/Sniffs/LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php b/src/Standards/Typo3Update/Sniffs/LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php index 1886995..7df07fc 100644 --- a/src/Standards/Typo3Update/Sniffs/LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php +++ b/src/Standards/Typo3Update/Sniffs/LegacyClassnames/MissingVendorForPluginsAndModulesSniff.php @@ -78,7 +78,7 @@ class Typo3Update_Sniffs_LegacyClassnames_MissingVendorForPluginsAndModulesSniff if ($fix === true) { $phpcsFile->fixer->replaceToken( $firstArgument, - "'{Options::getVendor()}.' . {$tokens[$firstArgument]['content']}" + "'" . Options::getVendor() . ".' . " . $tokens[$firstArgument]['content'] ); } }