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

Compatibility with recent PHPUnit (8) #132

Merged
merged 2 commits into from
Nov 14, 2020
Merged

Compatibility with recent PHPUnit (8) #132

merged 2 commits into from
Nov 14, 2020

Conversation

DavidPrevot
Copy link
Contributor

No description provided.

@Zegnat
Copy link
Collaborator

Zegnat commented Oct 5, 2019

We use PHPUnit 7.5, which does not do any type definitions for setup. So is this a commit for PHPUnit 8 (8.4?) compatibility?

Here the same question arises as in #130: are we planning to drop PHP 7.1 support? That seems to be the requirement for upgrading to PHPUnit 8, which requires at least PHP 7.2 to run.

@DavidPrevot
Copy link
Contributor Author

Hi,

is this a commit for PHPUnit 8 (8.4?) compatibility?

Indeed it is. This syntax is already accepted by PHPUnit 7 this project is currently using, hence this proposal: the tests still pass with the current setup, and won’t break when updating PHPUnit.

The PHP version used by this project is orthogonal to this PR, it may just make it a bit easier if it changes.

@DavidPrevot DavidPrevot changed the title Compatibility with recent PHPUnit Compatibility with recent PHPUnit (8) Oct 5, 2019
@Zegnat
Copy link
Collaborator

Zegnat commented Oct 6, 2019

Would love to do this in addition to then adding || ^8.4 to the PHPUnit requirement, just so there would be some actual forward momentum. A change to return type just for change’s sake never sits well with me, though it is a perfectly valid commit.

Sadly, because of upstream php-http/psr7-integration-tests we aren’t compatible with PHPUnit 8 at all. Adding the void return type doesn’t change this.

Not sure how I’d personally progress on this, I’ll leave that for @Nyholm to decide.

@GrahamCampbell
Copy link
Contributor

GrahamCampbell commented Jan 4, 2020

Why add this, when the composer.json file doesn't allow PHPUnit 8?

@Nyholm
Copy link
Owner

Nyholm commented May 23, 2020

I don't really see any benefits for this at the moment.

Sure, we can do it as "why not". But we need to make sure the test dependencies also support PHPUnit 8

Copy link
Owner

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

I've update composer.json to support phpunit 8.

I've also made sure php-http/psr7-integration-tests supports it too.

Thank you

@Nyholm Nyholm merged commit 1e712e8 into Nyholm:master Nov 14, 2020
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.

None yet

4 participants