Skip to content

Deprecate Annotation namespace in favor of Attribute namespace - #1555

Merged
garak merged 1 commit into
dustin10:masterfrom
endelwar:deprecate-annotations
Oct 24, 2025
Merged

Deprecate Annotation namespace in favor of Attribute namespace#1555
garak merged 1 commit into
dustin10:masterfrom
endelwar:deprecate-annotations

Conversation

@endelwar

@endelwar endelwar commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

The Vich\UploaderBundle\Mapping\Annotation namespace is misleading - it suggests Doctrine Annotations, but the bundle supports both Doctrine Annotations and PHP 8 native attributes.

This PR introduces the Vich\UploaderBundle\Mapping\Attribute namespace and deprecates the old one. The Annotation namespace remains functional in 2.9 (with deprecation warnings). Version 3.0 (PR in preparation on the 3.x branch PR #1556) will remove it completely.

Full backward compatibility is maintained.

@garak
garak merged commit 4c590b5 into dustin10:master Oct 24, 2025
12 checks passed
@endelwar
endelwar deleted the deprecate-annotations branch October 24, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants