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

remove null transport #98

Merged
merged 3 commits into from
Jul 30, 2020

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Jul 24, 2020

Q A
BC Break yes

Description

Re-create zendframework/zend-mail#195 . Null is reserved keyword in php 7+. It is for next major version when minimum php version upped to php 7+. Fixes #36

@samsonasik samsonasik linked an issue Jul 24, 2020 that may be closed by this pull request
@samsonasik samsonasik mentioned this pull request Jul 24, 2020
@weierophinney weierophinney modified the milestones: 3.0.0, 2.12.0 Jul 30, 2020
@weierophinney
Copy link
Member

It is for next major version when minimum php version upped to php 7+.

Well, we can bump the minimum version to 7 anytime. The problem is that this class is completely unusable when we do. As such, I'm going to wrap it in the 2.12.0 changes.

Copy link
Member

@weierophinney weierophinney left a comment

Choose a reason for hiding this comment

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

We need to keep the 'null' => InMemory::class mappings to retain BC. I'll make that change and push back to your branch.

@@ -102,15 +98,12 @@ public function typeAliasProvider()
{
return [
['file', File::class],
['null', InMemory::class],
Copy link
Member

Choose a reason for hiding this comment

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

We can actually keep these references to keep BC for end-users.

@@ -20,7 +20,6 @@ abstract class Factory
'file' => File::class,
'inmemory' => InMemory::class,
'memory' => InMemory::class,
'null' => InMemory::class,
Copy link
Member

Choose a reason for hiding this comment

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

We can keep this, as it's a string; removing it would be a BC break.

samsonasik and others added 3 commits July 30, 2020 09:21
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
Prevents BC breaks.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney weierophinney merged commit 9b19a48 into laminas:develop Jul 30, 2020
@samsonasik samsonasik deleted the remove-null-transport branch July 30, 2020 15:56
artemii-karkusha pushed a commit to artemii-karkusha/laminas-mail that referenced this pull request May 24, 2023
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove Null Transport
2 participants