diff --git a/composer.json b/composer.json index 9ca2c86..660c173 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ }, "require-dev": { "phpunit/phpunit": "~10.2", - "vimeo/psalm": "~5.15", + "innmind/static-analysis": "~1.1", "innmind/black-box": "~5.5", "innmind/coding-standard": "~2.0" }, diff --git a/src/Trigger/CodingStandard.php b/src/Trigger/CodingStandard.php index efc42bd..c592512 100644 --- a/src/Trigger/CodingStandard.php +++ b/src/Trigger/CodingStandard.php @@ -68,7 +68,11 @@ private function run( /** @var Map */ $variables = $console ->variables() - ->filter(static fn($key) => $key === 'PATH'); + ->filter(static fn($key) => \in_array( + $key, + ['PATH', 'PHP_CS_FIXER_IGNORE_ENV'], + true, + )); $command = Command::foreground('vendor/bin/php-cs-fixer') ->withArgument('fix')