Skip to content

Commit f2ff87e

Browse files
committed
forward the PHP_CS_FIXER_IGNORE_ENV to php-cs-fixer when defined by the user
1 parent e13c6a2 commit f2ff87e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Trigger/CodingStandard.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ private function run(
6868
/** @var Map<non-empty-string, string> */
6969
$variables = $console
7070
->variables()
71-
->filter(static fn($key) => $key === 'PATH');
71+
->filter(static fn($key) => \in_array(
72+
$key,
73+
['PATH', 'PHP_CS_FIXER_IGNORE_ENV'],
74+
true,
75+
));
7276

7377
$command = Command::foreground('vendor/bin/php-cs-fixer')
7478
->withArgument('fix')

0 commit comments

Comments
 (0)