From 5c643b6df1d30d7496e8f85a03995b5618b7b79f Mon Sep 17 00:00:00 2001 From: Christoph Lehmann Date: Fri, 30 Sep 2022 19:53:57 +0200 Subject: [PATCH] Add composer script --- .github/workflows/ci.yml | 2 +- composer.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7894663..073f269 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: - name: Install composer dependencies run: | - composer require friendsoftypo3/phpstan-typo3:^0.7 typo3/cms-core:^$typo3 typo3/cms-frontend:^$typo3 typo3/cms-backend:^$typo3 + composer require typo3/cms-core:^$typo3 typo3/cms-frontend:^$typo3 typo3/cms-backend:^$typo3 - name: Run PHPStan run: ./vendor/bin/phpstan analyse diff --git a/composer.json b/composer.json index 1e3bc1d..1abb117 100644 --- a/composer.json +++ b/composer.json @@ -46,5 +46,13 @@ "typo3/cms-composer-installers": true, "typo3/class-alias-loader": true } + }, + "require-dev": { + "saschaegerer/phpstan-typo3": "^1.1" + }, + "scripts": { + "phpstan": [ + "phpstan analyse -c phpstan.neon" + ] } }