Skip to content

Commit

Permalink
Add upgrade/migration doc
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Dec 1, 2024
1 parent 7789b93 commit 5d8766f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function getGuideSidebar() {
{
text: 'Upgrading',
children: [
{ text: 'Migration from 4.x to 5.x', link: '/guide/migrating-to-v5' },
{ text: 'Migration from 3.x to 4.x', link: '/guide/migrating-to-v4' },
{ text: 'Migration from 2.x to 3.x', link: '/guide/migrating-to-v3' },
]
Expand Down
15 changes: 15 additions & 0 deletions docs/guide/migrating-to-v5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Migrating to v5

## Overview

v5 is mostly a cleanup release with updated dependencies. The main changes are:

* Minimum required PHP version is now 7.4
* The legacy `TokenAnalyser` and the `--legacy` CLI option have been removed
* Defaults now prefer attributes over annotations
* PHP parsing now uses `nicic/php-parser`
* Removal of deprecated features
* empty/unused `ProcessorInterface`
* `Context::clone()` and `Context::detect()`

For most installations upgrading should not require any changes.

0 comments on commit 5d8766f

Please sign in to comment.