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

Clean up impossible test conditions and fix broken CI #787

Merged
merged 5 commits into from
Nov 30, 2023

Conversation

ste93cry
Copy link
Collaborator

@ste93cry ste93cry commented Nov 29, 2023

After the new release of symfony/psr-http-message-bridge, the return type of HttpMessageFactoryInterface::createRequest() was added at language-level. This triggered PHPStan and PHPUnit to report that null cannot be returned from such method, but an assertion of a test case was expecting that it happened. This PR refactors the broken tests by cleaning up the conditions that cannot happen in real life.

In addition to this, an error message from PHPStan was updated and no longer matched our baseline. Finally, I also fixed some deprecations that were breaking the end-to-end tests after the release of Symfony 6.4

@ste93cry ste93cry requested a review from Jean85 November 29, 2023 22:51
@ste93cry ste93cry changed the title Clean up impossible test conditions and update PHPStan baseline Clean up impossible test conditions and fix broken CI Nov 29, 2023
Copy link
Contributor

@Melfo01 Melfo01 left a comment

Choose a reason for hiding this comment

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

This is exactly what I need for my PR: #785

🎉

@ste93cry ste93cry force-pushed the cleanup-impossible-test-condition branch from eeee210 to 9771e1a Compare November 30, 2023 08:11
@ste93cry ste93cry merged commit a726b6c into master Nov 30, 2023
30 checks passed
@ste93cry ste93cry deleted the cleanup-impossible-test-condition branch November 30, 2023 16:27
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

Successfully merging this pull request may close these issues.

3 participants