From dfe95897977e76fb8caf3d0edc6d283e8c633776 Mon Sep 17 00:00:00 2001 From: Jesse Rushlow Date: Tue, 23 May 2023 06:49:25 -0400 Subject: [PATCH] ignore platform requirements when linting templates --- src/Util/TemplateLinter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }