From 96fbb07f5b623808916e8d5a83b08a97ca62a89f Mon Sep 17 00:00:00 2001 From: Greg Korba Date: Fri, 1 Dec 2023 16:55:06 +0100 Subject: [PATCH] Introduce Composer scripts for running PHPStan commands --- composer.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/composer.json b/composer.json index 6b55db996..4fa59f837 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,16 @@ } }, + "scripts": { + "phpstan": "phpstan analyse", + "phpstan:baseline": "phpstan analyse --generate-baseline" + }, + + "scripts-descriptions": { + "phpstan": "Run PHPStan analysis", + "phpstan:baseline": "Dump PHPStan baseline file - use only for updating, do not add new errors when possible" + }, + "extra": { "branch-alias": { "dev-master": "1.x-dev"