Skip to content

Commit

Permalink
Update PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Dec 23, 2019
1 parent db20638 commit 2256f91
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
},
"require-dev": {
"nette/tester": "^2.3.1",
"xificurk/phpstan-shim": "^0.11.8",
"phpstan/phpstan": "^0.12.3",
"phpstan/phpstan-strict-rules": "^0.12.0",
"pepakriz/phpstan-exception-rules": "^0.10.1",
"phpstan/phpstan-nette": "^0.12.0",
"damejidlo/phpstan-nette-tester": "^0.2.0",
"jakub-onderka/php-parallel-lint": "^1.0",
"nepada/coding-standard": "^6.3.0"
},
Expand Down
10 changes: 5 additions & 5 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
includes:
- phar://phpstan.phar/vendor/pepakriz/phpstan-exception-rules/extension.neon
- phar://phpstan.phar/vendor/phpstan/phpstan-nette/extension.neon
- phar://phpstan.phar/vendor/phpstan/phpstan-nette/rules.neon
- phar://phpstan.phar/vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/pepakriz/phpstan-exception-rules/extension.neon
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon

parameters:
level: max
paths:
- %currentWorkingDirectory%/src
- src

exceptionRules:
uncheckedExceptions:
Expand Down
15 changes: 8 additions & 7 deletions phpstan.tests.neon.dist
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
includes:
- phar://phpstan.phar/vendor/phpstan/phpstan-nette/extension.neon
- phar://phpstan.phar/vendor/phpstan/phpstan-nette/rules.neon
- phar://phpstan.phar/vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon
- vendor/damejidlo/phpstan-nette-tester/extension.neon

parameters:
level: max
paths:
- %currentWorkingDirectory%/tests
- tests

fileExtensions:
- php
- phpt

autoload_directories:
- %currentWorkingDirectory%/tests
- tests

excludes_analyse:
- %currentWorkingDirectory%/tests/bootstrap.php
- %currentWorkingDirectory%/tests/temp/*
- tests/bootstrap.php
- tests/temp/*

0 comments on commit 2256f91

Please sign in to comment.