Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctrine/annotations is not required if you have switched to attributes #1605

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading