Skip to content

Commit

Permalink
Added PHPStan (#68)
Browse files Browse the repository at this point in the history
* Added PHPStan

* cr remark 1

* fixed phpstan
  • Loading branch information
konradoboza authored Jun 19, 2024
1 parent 4fb3e4a commit 514f0e5
Show file tree
Hide file tree
Showing 6 changed files with 2,387 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ jobs:

- name: Run unit test suite
run: composer test

- name: Run PHPStan analysis
run: composer run-script phpstan
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
"ibexa/user": "~5.0.x-dev",
"mikey179/vfsstream": "^1.6",
"overblog/graphiql-bundle": "^0.2",
"phpspec/phpspec": "^7.1"
"phpspec/phpspec": "^7.1",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -77,6 +80,7 @@
"scripts": {
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",
"check-cs": "@fix-cs --dry-run",
"test": "phpspec run --format=pretty"
"test": "phpspec run --format=pretty",
"phpstan": "phpstan analyse"
}
}
Loading

0 comments on commit 514f0e5

Please sign in to comment.