Skip to content

Commit

Permalink
Adjust config for PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Dec 18, 2024
1 parent c2bf846 commit 138cc34
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
phpstan:
name: Static Code Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -23,3 +24,4 @@ jobs:
uses: php-actions/phpstan@v3
with:
configuration: ./.github/phpstan.neon
path: ''
12 changes: 11 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -72,6 +79,9 @@
"@composer docs:stop",
"@composer docs:build",
"@composer docs:start"
],
"phpstan": [
"@php vendor/bin/phpstan --configuration=\".github/phpstan.neon\""
]
},
"config": {
Expand Down

0 comments on commit 138cc34

Please sign in to comment.