Skip to content

Commit 821ca70

Browse files
committed
Update phpstan
1 parent 6493a73 commit 821ca70

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ before_script:
2828
script:
2929
- "! (composer outdated --direct | grep ^)"
3030
- vendor-tools/bin/php-cs-fixer fix --dry-run
31-
- vendor-tools/bin/phpstan analyse --level=5 --configuration=phpstan.neon src tests
31+
- vendor-tools/bin/phpstan analyse --level=7 --configuration=phpstan.neon src tests
3232
- vendor/bin/codecept run $coverage
3333

3434
after_success:

composer-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"require-dev": {
3-
"friendsofphp/php-cs-fixer": "^2.0.0",
4-
"phpstan/phpstan": "^0.6.3",
5-
"phpstan/phpstan-nette": "^0.6.1"
3+
"friendsofphp/php-cs-fixer": "@stable",
4+
"phpstan/phpstan": "@stable",
5+
"phpstan/phpstan-nette": "@stable"
66
},
77
"config": {
88
"vendor-dir": "vendor-tools"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@test"
5656
],
5757
"fix": "\"vendor-tools/bin/php-cs-fixer\" fix",
58-
"analyse": "\"vendor-tools/bin/phpstan\" analyse --no-progress --level=5 --configuration=phpstan.neon src tests",
58+
"analyse": "\"vendor-tools/bin/phpstan\" analyse --no-progress --level=7 --configuration=phpstan.neon src tests",
5959
"test": [
6060
"\"vendor/bin/codecept\" build",
6161
"\"vendor/bin/codecept\" run --debug"

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ includes:
33
- vendor-tools/phpstan/phpstan-nette/rules.neon
44

55
parameters:
6+
excludes_analyse:
7+
- %rootDir%/../../../tests/_*
8+
69
ignoreErrors:
10+
- '#^Calling method [a-zA-Z]++\(\) on possibly nullable type Doctrine\\Common\\Persistence\\ObjectManager\|null#'

0 commit comments

Comments
 (0)