Skip to content

Commit 0a43269

Browse files
authored
minor #1501 fix exception message when twigcs is not installed
we don't commit the lockfile, run upgrade not install...
1 parent cfe362e commit 0a43269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Test/MakerTestEnvironment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function fileExists(string $file): bool
228228
public function runTwigCSLint(string $file): MakerTestProcess
229229
{
230230
if (!file_exists(__DIR__.'/../../tools/twigcs/vendor/bin/twigcs')) {
231-
throw new \Exception('twigcs not found: run: "composer install --working-dir=tools/twigcs".');
231+
throw new \Exception('twigcs not found: run: "composer upgrade -W --working-dir=tools/twigcs".');
232232
}
233233

234234
return MakerTestProcess::create(sprintf('php tools/twigcs/vendor/bin/twigcs --config ./tools/twigcs/.twig_cs.dist %s', $this->path.'/'.$file), $this->rootPath)

0 commit comments

Comments
 (0)