Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit 5ce694b

Browse files
committed
Upgrade to PHPStan 1.x
1 parent e6cec62 commit 5ce694b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"type": "phpstan-extension",
1515
"require": {
1616
"php": "^7.3 || ^8",
17-
"phpstan/phpstan": "^0.12"
17+
"phpstan/phpstan": "^1"
1818
},
1919
"require-dev": {
2020
"eloquent/code-style": "^2",
@@ -46,5 +46,7 @@
4646
"phony.neon"
4747
]
4848
}
49-
}
49+
},
50+
"minimum-stability": "dev",
51+
"prefer-stable": true
5052
}

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ parameters:
55
paths: [src, test/src, test/suite]
66
inferPrivatePropertyTypeFromConstructor: true
77
ignoreErrors:
8+
- message: /^Calling PHPStan\\Analyser\\Error::.* is not covered by backward compatibility promise\./
9+
paths: [test/*]
10+
- message: /^Calling PHPStan\\Command\\AnalysisResult::.* is not covered by backward compatibility promise\./
11+
paths: [test/*]
812
- message: /^Function describe not found\.$/
913
paths: [test/*]
1014
- message: /^Function expect not found\.$/

0 commit comments

Comments
 (0)