Skip to content

Commit ae7f267

Browse files
Switch to PHPStan v1 (#66)
Co-authored-by: Viktor Szépe <viktor@szepe.net>
1 parent 489e92f commit ae7f267

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
"require": {
1414
"php": "^7.1 || ^8.0",
1515
"php-stubs/wordpress-stubs": "^4.7 || ^5.0",
16-
"phpstan/phpstan": "^0.12.26",
16+
"phpstan/phpstan": "^1.0",
1717
"symfony/polyfill-php73": "^1.12.0"
1818
},
1919
"require-dev": {
2020
"composer/composer": "^1.10.23",
2121
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
2222
"nikic/php-parser": "< 4.13.0",
2323
"php-parallel-lint/php-parallel-lint": "^1.1",
24-
"phpstan/phpstan-strict-rules": "^0.12",
24+
"phpstan/phpstan-strict-rules": "^1.0",
2525
"phpunit/phpunit": "^7 || ^9",
2626
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6"
2727
},

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ includes:
22
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
33
- vendor/phpstan/phpstan-strict-rules/rules.neon
44
parameters:
5-
level: max
5+
level: 8
66
# WpThemeMagicPropertiesClassReflectionExtension needs WP_Theme
77
scanFiles:
88
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php

0 commit comments

Comments
 (0)