Skip to content

Commit 3c791ca

Browse files
committed
psalm integration
1 parent 202f407 commit 3c791ca

File tree

5 files changed

+6
-67
lines changed

5 files changed

+6
-67
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ install:
2626
script:
2727
- ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover
2828
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then ./vendor/bin/psalm --config=psalm.xml; fi
29+
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then ./vendor/bin/phpstan analyse src --level 7; fi
2930
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run; fi
3031

3132
after_script:

CONTRIBUTING.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

LICENSE.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"require-dev": {
1414
"php-service-bus/code-style-config": "^v0.1",
1515
"phpunit/phpunit": "^8",
16-
"vimeo/psalm": "^v3"
16+
"vimeo/psalm": "^v3",
17+
"phpstan/phpstan": "^0.11.5"
1718
},
1819
"config": {
1920
"sort-packages": true,
@@ -39,10 +40,11 @@
3940
},
4041
"scripts": {
4142
"psalm": "./vendor/bin/psalm --config=psalm.xml",
43+
"phpstan": "./vendor/bin/phpstan analyse src --level 7",
4244
"tests": "./vendor/bin/phpunit --configuration phpunit.xml --verbose",
4345
"coverage": "./vendor/bin/phpunit --configuration phpunit.xml --coverage-html ./coverage --verbose",
4446
"cs-check": "./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run",
4547
"cs-fix": "./vendor/bin/php-cs-fixer fix --allow-risky=yes",
46-
"pre-commit": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --allow-risky=yes && ./vendor/bin/psalm --config=psalm.xml && ./vendor/bin/phpunit --configuration phpunit.xml --verbose"
48+
"pre-commit": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --allow-risky=yes && ./vendor/bin/psalm --config=psalm.xml && ./vendor/bin/phpstan analyse src --level 7 && ./vendor/bin/phpunit --configuration phpunit.xml --verbose"
4749
}
4850
}

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
parameters:

0 commit comments

Comments
 (0)