Skip to content

Commit 8e9dc74

Browse files
committed
allowing php-cs-fixer to use php 8.1
1 parent b96ef5c commit 8e9dc74

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Test/MakerTestEnvironment.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,11 @@ public function runPhpCSFixer(string $file): MakerTestProcess
215215
throw new \Exception('php-cs-fixer not found: run: "composer install --working-dir=tools/php-cs-fixer".');
216216
}
217217

218-
return MakerTestProcess::create(sprintf('php tools/php-cs-fixer/vendor/bin/php-cs-fixer --config=%s fix --dry-run --diff %s', __DIR__.'/../Resources/test/.php_cs.test', $this->path.'/'.$file), $this->rootPath)
219-
->run(true);
218+
return MakerTestProcess::create(
219+
sprintf('php tools/php-cs-fixer/vendor/bin/php-cs-fixer --config=%s fix --dry-run --diff %s', __DIR__.'/../Resources/test/.php_cs.test', $this->path.'/'.$file),
220+
$this->rootPath,
221+
['PHP_CS_FIXER_IGNORE_ENV' => '1']
222+
)->run(true);
220223
}
221224

222225
public function runTwigCSLint(string $file): MakerTestProcess

0 commit comments

Comments
 (0)