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

Adding swiftmailer to fos1 group to apply some php 8.2 patches to the code? #319

Closed
thirsch opened this issue Jan 19, 2024 · 7 comments
Closed

Comments

@thirsch
Copy link
Collaborator

thirsch commented Jan 19, 2024

We've created a fork and made some adjustments to the latest swiftmailer version to be compatible with PHP 8.2. Should we create an official fork here in the fos1 group and apply the patches there? For reference: vemaeg/swiftmailer@d46f73f

I thought I asked that already somewhere, but wasn't able to find it, therefore I'm opening an issue for it.

@alquerci
Copy link
Contributor

alquerci commented Jan 19, 2024

FYI: From #302 I rise error level until deprecation.
Aside, I am waiting for that PR to be merged to add more constraints on PHP error_reporting.

I had found dependencies requirements for PHP 8: here

And I got the one deprecation mention on the patch.

Deprecated: Callables of the form ["Swift_NullTransport",
"Swift_Transport_NullTransport::__construct"] are deprecated
(in lib/vendor/swiftmailer/lib/classes/Swift/NullTransport.php on
line 21)

IMHO deprecation should be ignored as it ask us too much work.

error_reporting:        <?php echo ((E_ALL | E_STRICT) ^ E_USER_DEPRECATED ^ E_DEPRECATED)."\n" ?>

OR

It's an opportunity to test the idea to use current Symfony component with symfony/mailer.
Without any BC breaks.

It will be a good experiment.

@connorhu
Copy link
Collaborator

In framework/library development the only acceptable error_reporting level is E_ALL. IMHO.

@alquerci
Copy link
Contributor

@connorhu I agree we need to be strict.

I talked on framework/library user point of view.

sf1 use swiftmailer.

@mentalstring
Copy link
Contributor

Given that swiftmailer is a requirement of symfony1, I agree that it would sensible if we could have a fork under fos1 where just the minimum necessary changes for PHP compatibility could be done.

@connorhu
Copy link
Collaborator

connorhu commented Feb 7, 2024

@thePanz Please create the new repo and invite @thirsch at least.

@thePanz
Copy link
Member

thePanz commented Feb 7, 2024

@connorhu done: https://github.com/FriendsOfSymfony1/swiftmailer

Please let's move there for further discussions :)

@thePanz thePanz closed this as completed Feb 7, 2024
@connorhu
Copy link
Collaborator

connorhu commented Feb 7, 2024

Thank you!

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

No branches or pull requests

5 participants