Skip to content

Commit a28fdfc

Browse files
petrparolekf3l1x
authored andcommitted
upgrade PHPStan
1 parent ca87d22 commit a28fdfc

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ csf:
1212
vendor/bin/codefixer src tests
1313

1414
phpstan:
15-
vendor/bin/phpstan analyse -l max -c phpstan.neon src
15+
vendor/bin/phpstan analyse -l 8 -c phpstan.neon src
1616

1717
tests:
1818
vendor/bin/tester -s -p php --colors 1 -C tests/cases

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"require-dev": {
2626
"ninjify/nunjuck": "^0.4",
2727
"ninjify/qa": "^0.12",
28-
"phpstan/phpstan": "^0.12",
29-
"phpstan/phpstan-deprecation-rules": "^0.12",
30-
"phpstan/phpstan-nette": "^0.12",
31-
"phpstan/phpstan-strict-rules": "^0.12"
28+
"phpstan/phpstan": "^1.0",
29+
"phpstan/phpstan-deprecation-rules": "^1.0",
30+
"phpstan/phpstan-nette": "^1.0",
31+
"phpstan/phpstan-strict-rules": "^1.0"
3232
},
3333
"suggest": {
3434
"nette/di": "to use SecurityExtension [CompilerExtension]"

phpstan.neon

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ includes:
33
- vendor/phpstan/phpstan-nette/extension.neon
44
- vendor/phpstan/phpstan-nette/rules.neon
55
- vendor/phpstan/phpstan-strict-rules/rules.neon
6-
7-
parameters:
8-
ignoreErrors:
9-
- '#^Parameter \#1 \$credentials \(array\<string\>\) of method Contributte\\Security\\Auth\\.+\:\:authenticate\(\) should be contravariant with parameter \$credentials \(array\) of method Nette\\Security\\IAuthenticator\:\:authenticate\(\)$#'

0 commit comments

Comments
 (0)