Skip to content

Commit 280c746

Browse files
Update to PHPStan 2.0
1 parent 0e5721f commit 280c746

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"php": ">=8.0"
2121
},
2222
"require-dev": {
23-
"php-static-analysis/node-visitor": "^0.3.2 || dev-main",
24-
"php-static-analysis/phpstan-extension": "^0.3.2 || dev-main",
25-
"php-static-analysis/psalm-plugin": "^0.3.2 || dev-main",
23+
"php-static-analysis/node-visitor": "^0.4.0 || dev-main",
24+
"php-static-analysis/phpstan-extension": "^0.4.0 || dev-main",
25+
"php-static-analysis/psalm-plugin": "^0.4.0 || dev-main",
2626
"phpstan/extension-installer": "^1.3",
27-
"phpstan/phpstan": "^1.8 | ^2.0",
27+
"phpstan/phpstan": "^2.0",
2828
"phpunit/phpunit": "^9.0",
2929
"symplify/easy-coding-standard": "^12.1",
3030
"vimeo/psalm": "^5"

phpstan.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ parameters:
1414
- '#^PHPDoc tag @[a-z\-A-Z]+ has invalid value \(\): Unexpected token "\\n ", expected type at offset [0-9]+( on line [0-9]+)?$#'
1515
- '#^Possibly impure call to method [a-z\-A-Z]+::[a-z\-A-Z]+\(\) in pure (method|function) ([a-z\-A-Z]+::)?[a-z\-A-Z]+\(\).?$#'
1616
- '#^Possibly impure instantiation of class [a-z\-A-Z]+ in pure function [a-z\-A-Z]+\(\).?$#'
17-
18-
includes:
19-
- vendor/phpstan/phpstan/conf/bleedingEdge.neon

0 commit comments

Comments
 (0)