Skip to content

Commit dfe9589

Browse files
committed
ignore platform requirements when linting templates
1 parent 320ef40 commit dfe9589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/TemplateLinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function lintPhpTemplate(string|array $templateFilePath): void
5959
foreach ($templateFilePath as $filePath) {
6060
$cmdPrefix = $this->needsPhpCmdPrefix ? 'php ' : '';
6161

62-
$process = Process::fromShellCommandline(sprintf('%s%s --config=%s --using-cache=no fix %s', $cmdPrefix, $this->phpCsFixerBinaryPath, $this->phpCsFixerConfigPath, $filePath));
62+
$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));
6363

6464
$process->run();
6565
}

0 commit comments

Comments
 (0)