Skip to content

Commit

Permalink
Upgrade phpstan and codesniffer (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrparolek authored Feb 9, 2022
1 parent 6b4ad7b commit abb3bd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ csf:
vendor/bin/phpcbf --standard=ruleset.xml --extensions=php,phpt --tab-width=4 --ignore=temp -sp src tests

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

tests:
vendor/bin/tester -s -p php --colors 1 -C tests
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"nette/tester": "^2.4.0",
"tracy/tracy": "^2.8.0",
"mockery/mockery": "^1.3.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-strict-rules": "^0.12",
"ninjify/coding-standard": "^0.12"
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"ninjify/coding-standard": "^0.11"
},
"prefer-stable": true,
"minimum-stability": "dev",
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ includes:
- ./vendor/phpstan/phpstan-strict-rules/rules.neon

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

0 comments on commit abb3bd1

Please sign in to comment.