Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Oct 6, 2023
1 parent 001139a commit 1278334
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions composer-require-checker.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/TestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1278334

Please sign in to comment.