diff --git a/composer-require-checker.json b/composer-require-checker.json index 9e1a2ec6..72481f9b 100644 --- a/composer-require-checker.json +++ b/composer-require-checker.json @@ -1,7 +1,12 @@ { "scan-files" : ["bin/twig-cs-fixer"], "symbol-whitelist" : [ - "Twig\\Extra\\Cache\\TokenParser\\CacheTokenParser", - "Symfony\\UX\\TwigComponent\\TwigComponentBundle" + "Symfony\\Bridge\\Twig\\TokenParser\\DumpTokenParser", + "Symfony\\Bridge\\Twig\\TokenParser\\FormThemeTokenParser", + "Symfony\\Bridge\\Twig\\TokenParser\\StopwatchTokenParser", + "Symfony\\Bridge\\Twig\\TokenParser\\TransDefaultDomainTokenParser", + "Symfony\\Bridge\\Twig\\TokenParser\\TransTokenParser", + "Symfony\\UX\\TwigComponent\\TwigComponentBundle", + "Twig\\Extra\\Cache\\TokenParser\\CacheTokenParser" ] } diff --git a/composer.json b/composer.json index 6d896f9f..645dce7a 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "phpunit/phpunit": "^9.5.26 || ^10.0.9", "psalm/plugin-phpunit": "^0.18.4", "psalm/plugin-symfony": "^5.0.0", - "rector/rector": "^0.17.0", + "rector/rector": "^0.18.0", "symfony/filesystem": "^5.4 || ^6.0", "symfony/process": "^5.4 || ^6.0", "symfony/twig-bridge": "^5.4 || ^6.0", diff --git a/tests/TestHelper.php b/tests/TestHelper.php index c47b59f4..f5242460 100644 --- a/tests/TestHelper.php +++ b/tests/TestHelper.php @@ -19,7 +19,7 @@ public static function generateDiff(string $contents, string $filePath): string throw new LogicException('Cannot get the current working directory.'); } - $cwd = $cwd.\DIRECTORY_SEPARATOR; + $cwd .= \DIRECTORY_SEPARATOR; if (str_starts_with($filePath, $cwd)) { $filename = substr($filePath, \strlen($cwd)); } else {