From c1099a980e4387b769b95e8b4818a95eaf475aea Mon Sep 17 00:00:00 2001 From: provokateurin Date: Sun, 15 Sep 2024 21:46:33 +0200 Subject: [PATCH] perf(psalm): Use multiple threads Signed-off-by: provokateurin --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 95a20c470..40bbf1ddb 100644 --- a/composer.json +++ b/composer.json @@ -15,8 +15,8 @@ "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", "cs:check": "php-cs-fixer fix --dry-run --diff", "cs:fix": "php-cs-fixer fix", - "psalm": "psalm.phar --threads=1", - "psalm:update-baseline": "psalm.phar --threads=1 --update-baseline", + "psalm": "psalm.phar --threads=$(nproc)", + "psalm:update-baseline": "psalm.phar --threads=$(nproc) --update-baseline", "psalm:clear": "psalm.phar --clear-cache && psalm.phar --clear-global-cache", "psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType", "test:unit": "vendor/bin/phpunit -c tests/phpunit.xml"