diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 35c5266d..54f94fc3 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -8,6 +8,7 @@ on: jobs: phpstan: + name: Static Code Analysis runs-on: ubuntu-latest steps: - name: Checkout code @@ -23,3 +24,4 @@ jobs: uses: php-actions/phpstan@v3 with: configuration: ./.github/phpstan.neon + path: '' diff --git a/composer.json b/composer.json index 8236b5d4..a4b398d8 100644 --- a/composer.json +++ b/composer.json @@ -42,10 +42,17 @@ ], "license": "GPL-3.0-or-later", "require": { + "php": "7.4 - 8.3", "typo3/cms-core": "^10.4|^11.5", - "kitodo/presentation": "^5.0|dev-master", + "kitodo/presentation": "^5.0|dev-main", "slub/slub-digitalcollections": "^4.0|dev-master" }, + "require-dev": { + "phpstan/phpstan": "^1.12" + }, + "replace": { + "typo3-ter/dfgviewer": "self.version" + }, "autoload": { "psr-4": { "Slub\\Dfgviewer\\": "Classes/" @@ -72,6 +79,9 @@ "@composer docs:stop", "@composer docs:build", "@composer docs:start" + ], + "phpstan": [ + "@php vendor/bin/phpstan --configuration=\".github/phpstan.neon\"" ] }, "config": {