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

[blog] php8 attributes in symfony #368

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

maximecolin
Copy link
Member

@maximecolin maximecolin commented Jun 29, 2021

Copy link
Member

@ogizanagi ogizanagi left a 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

@maximecolin
Copy link
Member Author

maximecolin commented Jun 29, 2021

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

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 ?

github-actions bot pushed a commit that referenced this pull request Jun 29, 2021
@ogizanagi
Copy link
Member

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

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 ?

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.

@ogizanagi ogizanagi added blog Article de blog and removed blog Article de blog labels Jun 29, 2021
@maximecolin maximecolin force-pushed the blog/php8-attributes-symfony branch from 39a4cbb to dc88ac9 Compare July 6, 2021 08:13
github-actions bot pushed a commit that referenced this pull request Jul 6, 2021
@maximecolin maximecolin merged commit 03cce07 into master Jul 6, 2021
@maximecolin maximecolin deleted the blog/php8-attributes-symfony branch July 6, 2021 08:28
github-actions bot pushed a commit that referenced this pull request Jul 6, 2021
@benjaminmal benjaminmal mentioned this pull request Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blog Article de blog content 📝
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants