Skip to content

Commit ac8a0fb

Browse files
committed
Update phpstan
1 parent 92394f4 commit ac8a0fb

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ before_script:
3131
script:
3232
- "! (composer outdated --direct | grep ^)"
3333
- if php -v | grep -q 'PHP 7'; then vendor-tools/bin/php-cs-fixer fix --dry-run; fi
34-
- if php -v | grep -q 'PHP 7'; then vendor-tools/bin/phpstan analyse --level=5 --configuration=phpstan.neon src tests; fi
34+
- if php -v | grep -q 'PHP 7'; then vendor-tools/bin/phpstan analyse --level=7 --configuration=phpstan.neon src tests; fi
3535
- vendor/bin/codecept run $coverage
3636

3737
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
@@ -41,7 +41,7 @@
4141
"@test"
4242
],
4343
"fix": "\"vendor-tools/bin/php-cs-fixer\" fix",
44-
"analyse": "\"vendor-tools/bin/phpstan\" analyse --no-progress --level=5 --configuration=phpstan.neon src tests",
44+
"analyse": "\"vendor-tools/bin/phpstan\" analyse --no-progress --level=7 --configuration=phpstan.neon src tests",
4545
"test": [
4646
"\"vendor/bin/codecept\" build",
4747
"\"vendor/bin/codecept\" run --debug"

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ includes:
44

55
parameters:
66
ignoreErrors:
7+
8+
excludes_analyse:
9+
- %rootDir%/../../../tests/_helpers/*

0 commit comments

Comments
 (0)