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

Drop PHP 7.3 and PHP 7.4 support #203

Merged
merged 9 commits into from
Aug 5, 2022
Merged

Conversation

Slamdunk
Copy link
Contributor

@Slamdunk Slamdunk commented Aug 4, 2022

No description provided.

Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
…ts references

Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
@Slamdunk Slamdunk added this to the 2.17.0 milestone Aug 4, 2022
"symfony/polyfill-intl-idn": "^1.24.0"
},
"conflict": {
"zendframework/zend-mail": "*"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/zendframework/zend-mail/blob/release-2.10.0/composer.json#L19

Since PHP versions now are going to mismatch completely, we can drop this, can't we?

@Slamdunk Slamdunk requested a review from Ocramius August 4, 2022 14:11
@@ -26,10 +24,6 @@ public function __invoke()
public function getDependencyConfig()
{
return [
// Legacy Zend Framework aliases
'aliases' => [
SmtpPluginManager::class => Protocol\SmtpPluginManager::class,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should stay for BC, since it may still be referenced by string

Comment on lines 52 to 62
// Legacy Zend Framework aliases
Crammd5::class => Smtp\Auth\Crammd5::class,
Login::class => Smtp\Auth\Login::class,
Plain::class => Smtp\Auth\Plain::class,
\Zend\Mail\Protocol\Smtp::class => Smtp::class,

// v2 normalized FQCNs
'zendmailprotocolsmtpauthcrammd5' => Smtp\Auth\Crammd5::class,
'zendmailprotocolsmtpauthlogin' => Smtp\Auth\Login::class,
'zendmailprotocolsmtpauthplain' => Smtp\Auth\Plain::class,
'zendmailprotocolsmtp' => Smtp::class,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should stay until the next major

@@ -2,25 +2,33 @@

namespace Laminas\Mail\Protocol;

use Interop\Container\ContainerInterface;
use interop\container\containerinterface;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This replacement is wrong due to PHPCS not recognizing class_alias()

@@ -2,7 +2,7 @@

namespace LaminasTest\Mail\Protocol;

use Interop\Container\ContainerInterface;
use interop\container\containerinterface;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This replacement is wrong due to PHPCS not recognizing class_alias()

Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
…sn't recognize `class_alias()`

Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
@Slamdunk Slamdunk requested a review from Ocramius August 5, 2022 08:50
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 thanks @Slamdunk!

@Ocramius
Copy link
Member

Ocramius commented Aug 5, 2022

@samsonasik I'm gonna hold off a release, if you want to try PHP 8 rector transformations here :-)

@Ocramius Ocramius self-assigned this Aug 5, 2022
@Ocramius Ocramius merged commit 349a5e6 into laminas:2.17.x Aug 5, 2022
@Slamdunk Slamdunk deleted the drop_73_74 branch August 5, 2022 09:35
@weierophinney
Copy link
Member

What was the justification for dropping support for 7.4? Considering it's still receiving security patches, I'm not seeing why we'd drop it in a new minor until later in the year, unless there's some compatibility issue. If there is, it'd be nice to at least have a link so that others coming to the issue know what prompted the decision...

@Slamdunk
Copy link
Contributor Author

Slamdunk commented Aug 8, 2022

A cascade of dev dep updates lead us to choose either baseline/suppress most of the errors or fix them popping to PHP 8.0.

We are going to support PHP 7.4 on 2.16.x branch until needed, for security patches only.

@Ocramius
Copy link
Member

Ocramius commented Aug 8, 2022

TBH, dropping PHP version support, especially 7.4, isn't a major problem, since it has only 3 months of shelf life left.

Remember that 2.16.x will still receive security issues until PHP 7.4 is dead.

artemii-karkusha pushed a commit to artemii-karkusha/laminas-mail that referenced this pull request May 24, 2023
Drop PHP 7.3 and PHP 7.4 support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants