Skip to content

Commit

Permalink
Introduced PHP Stan (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattfarinn authored Aug 31, 2023
2 parents d60f1d5 + bd1cde3 commit c63e8e6
Show file tree
Hide file tree
Showing 5 changed files with 13,742 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr

- name: Run PHPStan analysis
run: composer run-script phpstan

tests:
name: Tests
runs-on: "ubuntu-20.04"
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
"ibexa/doctrine-schema": "~4.6.0@dev",
"ibexa/http-cache": "~4.6.0@dev",
"ibexa/code-style": "^1.0"
"ibexa/code-style": "^1.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3"
},
"config": {
"allow-plugins": {
Expand All @@ -80,6 +83,7 @@
"scripts": {
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",
"check-cs": "@fix-cs --dry-run",
"phpstan": "phpstan analyse",
"test": "phpunit -c phpunit.xml"
},
"extra": {
Expand Down
Loading

0 comments on commit c63e8e6

Please sign in to comment.