From aa26e67f6f39839bbe6950ff45bbc29ef5502a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 20 Jan 2025 14:12:24 +0100 Subject: [PATCH] Update PHP-CS-Fixer cache path and add PHPStan command Changed the cache path in `.php-cs-fixer.dist.php` to improve organization by moving it to the `var` directory. Added a new Composer script for running PHPStan to streamline static analysis workflows. --- .php-cs-fixer.dist.php | 2 +- composer.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 49b6f1a07..3360abe85 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -25,7 +25,7 @@ $config = new PhpCsFixer\Config(); $config ->setFinder($finder) ->setRiskyAllowed(true) - ->setCacheFile('.cache/php-cs-fixer.cache') + ->setCacheFile('var/php-cs-fixer.cache') ->setUsingCache(true) ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) ; diff --git a/composer.json b/composer.json index 00a89c4c7..8f6d01335 100644 --- a/composer.json +++ b/composer.json @@ -160,7 +160,8 @@ "cache:clear": "symfony-cmd", "assets:install %PUBLIC_DIR%": "symfony-cmd" }, - "php-cs-fixer": "php-cs-fixer fix --config=./.php-cs-fixer.dist.php --show-progress=none" + "php-cs-fixer": "php-cs-fixer fix --config=./.php-cs-fixer.dist.php --show-progress=none", + "phpstan": "phpstan --no-progress" }, "extra": { "symfony": {