Skip to content

Commit

Permalink
TASK: Update PHPStan configuration (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
nostadt authored Feb 13, 2024
1 parent 8fca06c commit 5e6a77c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: composer install

- name: PHPStan
run: composer phpstan
run: vendor/bin/phpstan

composer_normalize:
runs-on: ubuntu-20.04
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ docker run --rm --interactive --tty --volume $PWD:/app composer <command>

# PHPUnit
docker run -it --rm --name my-running-script -v "$PWD":/app -w /app php:8.3-cli php vendor/bin/phpunit

# PHPStan
docker run -it --rm --name my-running-script -v "$PWD":/app -w /app php:8.3-cli php vendor/bin/phpstan
```
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"phpunit/phpunit": "^11"
},
"scripts": {
"normalize": "./bin/json-normalize composer.json 2",
"phpstan": "phpstan analyse --level 9 src tests"
"normalize": "./bin/json-normalize composer.json 2"
},
"support": {
"issues": "https://github.com/nostadt/php-share-url/issues",
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
level: 9
paths:
- src
- tests

0 comments on commit 5e6a77c

Please sign in to comment.