Skip to content

Commit 0715ab9

Browse files
committed
Upgrading note
1 parent 46a2477 commit 0715ab9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: UPGRADING.md

+4
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ Tags without a PHP version are no longer published - `nightly`, `2`, `latest` ar
109109

110110
## Upgrading guide for extension developers
111111

112+
> [!NOTE]
113+
> Please switch to PHPStan 2.0 in a new major version of your extension. It's not feasible to try to support both PHPStan 1.x and PHPStan 2.x with the same extension code.
114+
> You can definitely get closer to supporting PHPStan 2.0 without increasing major version by solving reported deprecations and other issues by analysing your extension code with PHPStan & phpstan-deprecation-rules & Bleeding Edge, but the final leap and solving backward incompatibilities should be done by requiring `"phpstan/phpstan": "^2.0"` in your `composer.json`, and releasing a new major version.
115+
112116
### PHPStan now uses nikic/php-parser v5
113117

114118
See [UPGRADING](https://github.com/nikic/PHP-Parser/blob/master/UPGRADE-5.0.md) guide for PHP-Parser.

0 commit comments

Comments
 (0)