Skip to content

Commit abb3bd1

Browse files
authored
Upgrade phpstan and codesniffer (#31)
1 parent 6b4ad7b commit abb3bd1

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
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/phpcbf --standard=ruleset.xml --extensions=php,phpt --tab-width=4 --ignore=temp -sp src tests
1313

1414
phpstan:
15-
vendor/bin/phpstan analyse -l max -c phpstan.neon --memory-limit=512M src
15+
vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=512M
1616

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

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
"nette/tester": "^2.4.0",
4545
"tracy/tracy": "^2.8.0",
4646
"mockery/mockery": "^1.3.0",
47-
"phpstan/phpstan": "^0.12",
48-
"phpstan/phpstan-strict-rules": "^0.12",
49-
"ninjify/coding-standard": "^0.12"
47+
"phpstan/phpstan": "^1.0",
48+
"phpstan/phpstan-strict-rules": "^1.0",
49+
"ninjify/coding-standard": "^0.11"
5050
},
5151
"prefer-stable": true,
5252
"minimum-stability": "dev",

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ includes:
22
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
33

44
parameters:
5+
level: 8
6+
paths:
7+
- src
58
ignoreErrors:
69
- '#^Strict comparison using === between string and null will always evaluate to false.$#'
710
- '#^Parameter \#1 \$sql of method Nette\\Database\\Explorer::query\(\) expects literal-string, mixed given.$#'

0 commit comments

Comments
 (0)