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

PHP 8 compatibility #313

Merged
merged 9 commits into from
Jan 12, 2021
Merged

PHP 8 compatibility #313

merged 9 commits into from
Jan 12, 2021

Conversation

ahilles107
Copy link
Contributor

adjust tests for phpunit 9, fix broken methods signatures for php8

@ahilles107
Copy link
Contributor Author

after merging @W0rma work - Hateoas works with PHP 8.0 @goetas - can You look at it?

@ahilles107
Copy link
Contributor Author

Contains #312

@marashlyansuren
Copy link

Hi all, is there any ETA when this will be merged?

Copy link
Collaborator

@goetas goetas left a comment

Choose a reason for hiding this comment

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

can you please try to make it compatible with php 7.2? (otherwise all the other changes are ok for me)

composer.json Outdated
@@ -17,20 +17,22 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.3 | ^8.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

why increasing php from 7.2 to 7.3?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, phpunit 9 requirers >=7.3 https://packagist.org/packages/phpunit/phpunit

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok, but by using "phpunit/phpunit": "^7 | ^9", we should be able to stay on 7.2 since phpunit 7 requires php 7.1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@ahilles107
Copy link
Contributor Author

It was dropped by @W0rma but from what I remember phpunit forced that.

@ahilles107 ahilles107 closed this Jan 12, 2021
@ahilles107 ahilles107 reopened this Jan 12, 2021
@goetas goetas merged commit 63e255b into willdurand:master Jan 12, 2021
@goetas
Copy link
Collaborator

goetas commented Jan 12, 2021

Thank you for your work

@marashlyansuren
Copy link

@ahilles107 @goetas Thanks a lot!

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.

4 participants