Skip to content

Commit

Permalink
PHPStan 0.9 (no-shim) + extra strict rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Majkl578 committed Feb 13, 2018
1 parent 427c9a5 commit c076b0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- stage: Code Quality
env: STATIC_ANALYSIS
script:
- vendor/phpstan/phpstan-shim/phpstan.phar analyse --ansi --no-progress -l7 -c phpstan.neon src/ tests/
- vendor/bin/phpstan analyse --ansi --no-progress -l7 -c phpstan.neon src/ tests/

- stage: Code Quality
env: CODING_STANDARDS
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"require-dev": {
"kdyby/coding-standard": "^1.0@dev",
"nette/tester": "~1.7",
"phpstan/phpstan-shim": "^0.7"
"phpstan/phpstan": "^0.9",
"phpstan/phpstan-strict-rules": "^0.9"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 3 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
parameters:
ignoreErrors:
- '#Access to an undefined property DateInterval::\$f#'

includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon

0 comments on commit c076b0c

Please sign in to comment.