-
Notifications
You must be signed in to change notification settings - Fork 19
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
Rendre compatible avec Symfony 6.0 #35
Rendre compatible avec Symfony 6.0 #35
Conversation
ℹ️ we're still supporting symfony 4.4 (I hope these returned types are the same in 4.4 and 6.0 🤞) |
The I think this PR should be OK if you fix the linter errors. |
Je regarderais ce soir le linter et j'irais vérifier pour Symfony 4.4 au passage. (la CI ne s'était pas déclenchée hier quand j'ai fait la PR) |
282e387
to
abe1ed0
Compare
@Oliboy50 @jdecool J'ai modifié le commit en corrigeant le linter. Pour informations, cette modification est compatible SF4.4 : les classes Bundle et Extension existent en SF4.4 sauf que le retour des méthodes n'est pas typé :
Cela ne pose pas de problème de rajouter le typage dans une classe enfant : https://3v4l.org/F7QcB |
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.
🙇
if you could also update our CI workflow to build against symfony 6.0
, it would be perfect 👌
abe1ed0
to
10f3634
Compare
@Oliboy50 : voilà c'est mise à jour. Je ne peux pas voir si c'est OK. Il faut approuver la modification de votre côté avant que le workflow ne soit déclenché ? |
@klnjmm it is normal for so you will have to matrix:
php-version: [ '7.4', '8.0', '8.1' ]
symfony-version: ['^4.4', '^5.0', '^5.3']
exclude:
# excludes symfony 6.0 on php 7.4
- php-version: '7.4'
symfony-version: '^6.0' => https://github.com/BedrockStreaming/ElasticsearchBundle/blob/master/.github/workflows/ci.yml#L9-L11 |
about the php 8.0/8.1 + symfony 6.0 failed combinations, you will have to update the composer.json file to allow => https://github.com/BedrockStreaming/ElasticsearchBundle/blob/master/composer.json#L20-L25 |
Bon il va falloir que je regarde comment tester les github action en local … je regarde pour faire le correctif ce week-end. |
@klnjmm I updated the GitHub Actions triggering settings, now it should trigger the build of your PR each time you push something |
Lors de l'intégration du bundle avec Symfony 6.0, deux messages d'erreur remontaient lors du clear:cache * `Declaration of M6Web\Bundle\ElasticsearchBundle\M6WebElasticsearchBundle::getContainerExtension() must be compatible with Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension(): ?Symfony\Component\DependencyInjection\Extension\ExtensionInterface` * `Declaration of M6Web\Bundle\ElasticsearchBundle\DependencyInjection\M6WebElasticsearchExtension::getAlias() must be compatible with Symfony\Component\DependencyInjection\Extension\Extension::getAlias(): string` Ces modifications sont compatibles avec Symfony 4.4 (les classes Bundle et Extension existent en SF4.4 sauf que le retour des méthodes n'est pas typé). Cela ne pose pas de problème de rajouter le typage dans une classe enfant
10f3634
to
ce7b2c5
Compare
@Oliboy50 |
@BedrockStreaming/cache-db I think you can merge/release this PR |
Des nouvelles sur le tag de cette PR ? |
Ahoy o/ |
Environnement : Mac OS X
PHP Version : 8.1.3
Symfony version : 6.0.6
Version du bundle installée : 3.0.0
Lors de l'intégration du bundle avec Symfony 6.0, deux messages d'erreur remontaient lors du
composer require
/clear:cache
:Declaration of M6Web\Bundle\ElasticsearchBundle\M6WebElasticsearchBundle::getContainerExtension() must be compatible with Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension(): ?Symfony\Component\DependencyInjection\Extension\ExtensionInterface
Declaration of M6Web\Bundle\ElasticsearchBundle\DependencyInjection\M6WebElasticsearchExtension::getAlias() must be compatible with Symfony\Component\DependencyInjection\Extension\Extension::getAlias(): string