Downgrade PHPStan to 0.11

Increases level to max and adds the current errors as a baseline.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-12-09 20:47:33 -03:00
parent 958ba8822d
commit ec22dd707a
3 changed files with 4203 additions and 24 deletions

View File

@ -86,8 +86,8 @@
"facebook/webdriver": "^1.7.1", "facebook/webdriver": "^1.7.1",
"phpmyadmin/coding-standard": "^1.0", "phpmyadmin/coding-standard": "^1.0",
"phpstan/extension-installer": "^1.0", "phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.0", "phpstan/phpstan": "^0.11.19",
"phpstan/phpstan-phpunit": "^0.12.0", "phpstan/phpstan-phpunit": "^0.11.2",
"phpunit/phpunit": "^7.5 || ^8.0", "phpunit/phpunit": "^7.5 || ^8.0",
"pragmarx/google2fa-qrcode": "^1.0.1", "pragmarx/google2fa-qrcode": "^1.0.1",
"samyoul/u2f-php-server": "^1.1", "samyoul/u2f-php-server": "^1.1",

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,15 @@
includes: includes:
- phpstan-baseline.neon - phpstan-baseline.neon
parameters: parameters:
level: 2 level: max
paths: paths:
- . - %rootDir%/../../../
bootstrap: test/bootstrap-phpstan.php bootstrap: %rootDir%/../../../test/bootstrap-phpstan.php
reportUnmatchedIgnoredErrors: true reportUnmatchedIgnoredErrors: true
inferPrivatePropertyTypeFromConstructor: true inferPrivatePropertyTypeFromConstructor: true
excludes_analyse: excludes_analyse:
- examples/openid.php - %rootDir%/../../../examples/openid.php
- node_modules/* - %rootDir%/../../../node_modules/*
- test/sami-config.php - %rootDir%/../../../test/sami-config.php
- tmp/* - %rootDir%/../../../tmp/*
- vendor/* - %rootDir%/../../../vendor/*