-
Notifications
You must be signed in to change notification settings - Fork 10
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
[blog] php8 attributes in symfony #368
Conversation
for commit 4559e18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je ne sais pas si ça vaut le coup de le mentionner ou non, mais des outils comme Rector permettent de faire automatiquement la migration d'annotations vers les attributs PHP 8: https://getrector.org/blog/2020/11/30/smooth-upgrade-to-php-8-in-diffs#12-symfony-annotations-to-attributes
d6e85a4
to
39a4cbb
Compare
Si, ça peut être interessant. Après j'ai jamais utilisé. Tu sais comment il se débrouille pour migrer justement les annotations imbriquées ? |
for commit 2702b0b
c'est du cas par cas pour les annotations, ils ont leur support d'annotation spécifiques à Doctrine, Symfony, etc... du coup je pense qu'il gèrent ça correctement pour Doctrine en les convertissant en leur équivalent non imbriqué. Par contre, il doit certainement ne rien faire pour les annotations Symfony imbriquées et c'est alors à toi de les modifier à la main. |
39a4cbb
to
dc88ac9
Compare
Preview : https://elao.github.io/elao_/pr/368/blog/dev/les-attributs-php-8-dans-symfony/