Skip to content

Commit

Permalink
Improve PHPStan config
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Dec 21, 2023
1 parent 2d5d575 commit 935f130
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 70 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"pronamic/wp-coding-standards": "^2.1",
"roots/wordpress": "^6.0",
"wp-phpunit/wp-phpunit": "^6.1",
"wpackagist-plugin/ninja-forms": "3.5.4",
"wpackagist-plugin/ninja-forms": "^3.7",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ includes:
parameters:
customRulesetUsed: false
level: max
bootstrapFiles:
- tests/phpstan/bootstrap.php
paths:
- src/
scanDirectories:
- wp-content/plugins/ninja-forms
11 changes: 0 additions & 11 deletions tests/phpstan/bootstrap.php

This file was deleted.

4 changes: 2 additions & 2 deletions vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require-dev": {
"phpstan/phpstan": "^0.12",
"szepeviktor/phpstan-wordpress": "^0.7"
"phpstan/phpstan": "^1.10",
"szepeviktor/phpstan-wordpress": "^1.3"
}
}
108 changes: 54 additions & 54 deletions vendor-bin/phpstan/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 935f130

Please sign in to comment.