Skip to content

Commit a16235d

Browse files
committedJan 7, 2025
Add upgrade/migration doc
1 parent 539a8bc commit a16235d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 

‎docs/.vitepress/config.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function getGuideSidebar() {
2020
{
2121
text: 'Upgrading',
2222
children: [
23+
{ text: 'Migration from 4.x to 5.x', link: '/guide/migrating-to-v5' },
2324
{ text: 'Migration from 3.x to 4.x', link: '/guide/migrating-to-v4' },
2425
{ text: 'Migration from 2.x to 3.x', link: '/guide/migrating-to-v3' },
2526
]

‎docs/guide/migrating-to-v5.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Migrating to v5
2+
3+
## Overview
4+
5+
v5 is mostly a cleanup release with updated dependencies. The main changes are:
6+
7+
* Minimum required PHP version is now 7.4
8+
* The legacy `TokenAnalyser` and the `--legacy` CLI option have been removed
9+
* Defaults now prefer attributes over annotations
10+
* PHP parsing now uses `nicic/php-parser`
11+
* Removal of deprecated features
12+
* empty/unused `ProcessorInterface`
13+
* `Context::clone()` and `Context::detect()`
14+
15+
For most installations upgrading should not require any changes.

0 commit comments

Comments
 (0)
Please sign in to comment.