Skip to content

Commit 5b43db8

Browse files
committed
Update phpstan
1 parent 5668ae4 commit 5b43db8

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-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,9 +1,9 @@
11
{
22
"require-dev": {
3-
"friendsofphp/php-cs-fixer": "^2.0.0",
3+
"friendsofphp/php-cs-fixer": "@stable",
44
"nette/http": "^3.0.0",
5-
"phpstan/phpstan": "^0.6.3",
6-
"phpstan/phpstan-nette": "^0.6.1"
5+
"phpstan/phpstan": "@stable",
6+
"phpstan/phpstan-nette": "@stable"
77
},
88
"minimum-stability": "alpha",
99
"config": {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@test"
4646
],
4747
"fix": "\"vendor-tools/bin/php-cs-fixer\" fix",
48-
"analyse": "\"vendor-tools/bin/phpstan\" analyse --no-progress --level=5 --configuration=phpstan.neon src tests",
48+
"analyse": "\"vendor-tools/bin/phpstan\" analyse --no-progress --level=7 --configuration=phpstan.neon src tests",
4949
"test": [
5050
"\"vendor/bin/codecept\" build",
5151
"\"vendor/bin/codecept\" run --debug"

phpstan.neon

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

55
parameters:
6+
excludes_analyse:
7+
- %rootDir%/../../../tests/_*
8+
69
ignoreErrors:
10+
- '#^Calling method getContent\(\) on possibly nullable type Symfony\\Component\\BrowserKit\\Response\|null#'
11+
- '#^Method Arachne\\Codeception\\Module\\NetteDIModule::getContainer\(\) should return Nette\\DI\\Container but returns Nette\\DI\\Container\|null#'
12+
- '#^Calling method [a-zA-Z]++\(\) on possibly nullable type Nette\\DI\\Container\|null#'

0 commit comments

Comments
 (0)