diff --git a/src/Util/TemplateLinter.php b/src/Util/TemplateLinter.php index 0827c141c..74707ef07 100644 --- a/src/Util/TemplateLinter.php +++ b/src/Util/TemplateLinter.php @@ -59,7 +59,7 @@ public function lintPhpTemplate(string|array $templateFilePath): void foreach ($templateFilePath as $filePath) { $cmdPrefix = $this->needsPhpCmdPrefix ? 'php ' : ''; - $process = Process::fromShellCommandline(sprintf('%s%s --config=%s --using-cache=no fix %s', $cmdPrefix, $this->phpCsFixerBinaryPath, $this->phpCsFixerConfigPath, $filePath)); + $process = Process::fromShellCommandline(sprintf('PHP_CS_FIXER_IGNORE_ENV=1 %s%s --config=%s --using-cache=no fix %s', $cmdPrefix, $this->phpCsFixerBinaryPath, $this->phpCsFixerConfigPath, $filePath)); $process->run(); }