Skip to content

Adds error code to runtime exception and adds test for rejected recip…#237

Merged
Slamdunk merged 4 commits intolaminas:2.23.xfrom
sandstein:2.23.x
May 24, 2023
Merged

Adds error code to runtime exception and adds test for rejected recip…#237
Slamdunk merged 4 commits intolaminas:2.23.xfrom
sandstein:2.23.x

Conversation

@schnumsel
Copy link
Copy Markdown

This is the requested PR to issue #236

@schnumsel
Copy link
Copy Markdown
Author

Well, I corrected all the checks I understood but the 2 failing are very unclear to me. The two failing tests state:

Running ./vendor/bin/phpunit
PHP Fatal error:  Cannot make static method Laminas\ServiceManager\Test\CommonPluginManagerTrait::getPluginManager() non static in class LaminasTest\Mail\Protocol\SmtpPluginManagerCompatibilityTest in /github/workspace/test/Protocol/SmtpPluginManagerCompatibilityTest.php on line 16

Fatal error: Cannot make static method Laminas\ServiceManager\Test\CommonPluginManagerTrait::getPluginManager() non static in class LaminasTest\Mail\Protocol\SmtpPluginManagerCompatibilityTest in /github/workspace/test/Protocol/SmtpPluginManagerCompatibilityTest.php on line 16

but neither is Laminas\ServiceManager\Test\CommonPluginManagerTrait::getPluginManager() static:

    /**
     * Returns the plugin manager to test
     *
     * @return AbstractPluginManager
     */
    abstract protected function getPluginManager();

nor did I change anything in the LaminasTest\Mail\Protocol\SmtpPluginManagerCompatibilityTest class.

Quite confused, maybe a wrong test?

Best regards,
Willi

@Ocramius
Copy link
Copy Markdown
Member

Failure seems indeed unrelated to your changes 🤔

@gsteel
Copy link
Copy Markdown
Member

gsteel commented May 19, 2023

This is a BC break in ServiceManager 3.21

Dropping support for PHP 8.0, bumping ServiceManager to ^3.21 and making the relevant method static here will 'fix' it, alternatively a conflict with 3.21 of SM ??

@Ocramius
Copy link
Copy Markdown
Member

IMO just bumping in a new PR

@schnumsel
Copy link
Copy Markdown
Author

Hi there, so I understand the problems. I was trying to solve it, but now I am giving up, see
other PR #238. I'll open an issue about the case, because the test configuration and how to deal with

This is a BC break in ServiceManager 3.21

are way over my knowledge concerning the project. I'll merge the corrected branch in mine, once the work is done and hopefully it will pass all tests then.

Best regards,

Willi

@Ocramius
Copy link
Copy Markdown
Member

To be clear, not expecting you to fix it: the situation arises due to internal breakages.

Thanks for trying though!

@Slamdunk
Copy link
Copy Markdown
Contributor

@schnumsel I've fixed the upstream branch in #233

Can you rebase yours please?

@Slamdunk Slamdunk added this to the 2.23.0 milestone May 22, 2023
Wilfried Wolf added 4 commits May 22, 2023 11:17
…ient

Signed-off-by: Wilfried Wolf <mail@wilfried.wolf.name>
Signed-off-by: Wilfried Wolf <mail@wilfried.wolf.name>
Signed-off-by: Wilfried Wolf <mail@wilfried.wolf.name>
Signed-off-by: Wilfried Wolf <mail@wilfried.wolf.name>
@Ocramius
Copy link
Copy Markdown
Member

@schnumsel you merged upstream via 87bf441

@Slamdunk needs a rebase here :D

@wilfriedwolf
Copy link
Copy Markdown

@Slamdunk Thanks! @Ocramius not very familiar with these steps I should have done a force push, I'll try ...

@wilfriedwolf
Copy link
Copy Markdown

So this one goes without rebase.... I'll learn :)

Copy link
Copy Markdown
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.

Looking good now! Giving @Slamdunk the say on the state of this patch :)

@Slamdunk Slamdunk linked an issue May 24, 2023 that may be closed by this pull request
@Slamdunk
Copy link
Copy Markdown
Contributor

Thank you @schnumsel

@Slamdunk Slamdunk merged commit 3d110d1 into laminas:2.23.x May 24, 2023
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.

Pass SMTP server response code to Runtime Exception

5 participants