Skip to content

Commit

Permalink
doctrine/annotations is not required if you have switched to attribut…
Browse files Browse the repository at this point in the history
…es (#1605)
  • Loading branch information
bobvandevijver authored Jun 13, 2024
1 parent 2d983ce commit 78b504d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/migrating-to-v4.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Migrating to v4

## Overview
* Doctrine annotations library must now be installed manually: `composer require doctrine/annotations`
* As of PHP 8.1 annotations may be used as
[PHP attributes](https://www.php.net/manual/en/language.attributes.overview.php) instead.
That means all references to annotations in this document also apply to attributes.
* If you haven't switched to attributes yet, the Doctrine annotations library must be installed manually: `composer require doctrine/annotations`
* Annotations now **must be** associated with a structural element (class, trait, interface), a method, property or const.
* A new annotation `PathParameter` was added for improved framework support.
* A new annotation `Attachable` was added to simplify custom processing.
Expand Down

0 comments on commit 78b504d

Please sign in to comment.