Skip to content

Commit

Permalink
Phpstan: use contributte/phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jul 3, 2023
1 parent 5ee7bf4 commit d23bc93
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/contributte/phpstan/phpstan.neon

parameters:
ignoreErrors:
# false positive
- '#^Cannot call method getHttpData\(\) on Nette\\Forms\\Form\|null\.$#'
# datasource is too much difficult to predict
- '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
level: 9
phpVersion: 80100

scanDirectories:
- src

fileExtensions:
- php

paths:
- src
- .docs

0 comments on commit d23bc93

Please sign in to comment.