-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Compat for Swiftmailer 6 but preserve compatibility with Swiftmailer 5. #240
Compat for Swiftmailer 6 but preserve compatibility with Swiftmailer 5. #240
Conversation
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.
LGTM but let's not forgot to add tests.
For that I suggest to add one job with SwiftMailer version 6 on travis build.
Do you know enough about travis-ci to do that change or you need help?
PS: you can update the same PR by just push another commit to feature/swiftmailer-6-compat-2
.
Thanks for your re-review. I've not done a project on travis so far and help would be much appreciated. At the moment we are installing swiftmailer 5 if the tests are running on PHP < 7 and if we are running on PHP >= 7, it is already installing swiftmailer 6. Any specific point to test or would that be sufficient? |
That's sufficient. To execute the current test for each swift version
I will try to tackle this this week-end. A trade-off here is to install swift version 6 on before install then revert the commit when travis build is done. |
Thanks
At the moment |
Ha, got it now (refreshing my memory => because composer install the latest possible version). In that case I think that's enough except there is a bug on lowest versions. |
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.
LGTM 👍
Thank you @thirsch , merged |
Found out that Any hints @thirsch ? |
Good catch, @thePanz. We could do the same as in this pr by removing the type from the method signature and add both types to the phpdoc. I can create a pr for it, if you like. |
Yes, please go ahead 👍 |
Ok, got it. We might be able to fix it with the solution I had before just removing the type. The pr is still available, so please have a look at it: https://github.com/FriendsOfSymfony1/symfony1/pull/237/files#diff-ab78635a7285fe1eca9b5c7fad605d21d3f09ccd2737c0af6bbf7022f66f95a7 As I'm on vacation next week, it will take a few days to come up with a proposal. |
This pr is the follow up for #237. Thanks for your review.