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

feat: require php 8.1 & update phpunit to v10 #127

Merged
merged 3 commits into from
Feb 22, 2025

Conversation

marmichalski
Copy link
Contributor

Supersedes #120.

I can split the PR into separate one dropping PHP 8.0 and then this just upgrading phpunit, but I guess it is fine in one, too 🙈

Reasoning being that PHP 8.0 is already EOL for some time.

@coveralls
Copy link

coveralls commented Jan 27, 2025

Coverage Status

coverage: 91.332% (-1.2%) from 92.522%
when pulling fb3b960 on marmichalski:php81
into b491dcf on ackintosh:master.

"symfony/http-client": "^5.3|^6.0",
"symfony/yaml": "^3.0|^4.0|^5.0|^6.0",
"php-vcr/php-vcr": "^1.4.5",
"php-vcr/php-vcr": "dev-master#c0aeeba0f3804fcfdb9cd6b390b0cb3be250c070 as 1.9.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

php 8.4 support is not tagged 😭

@@ -66,26 +66,24 @@ public function recordsSuccessAndClose()
/**
* @test
*/
public function notifyTripped()
public function tripsOnce()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not entirely certain what this test was asserting, my assumption here is that the EVENT_TRIPPED is passed only once?

Copy link
Owner

Choose a reason for hiding this comment

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

You are right! My intention was to test that Ganesha::EVENT_TRIPPED is triggered, and that it happens only once.

README.md Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not update the versions table as I am not sure how do you want to proceed, @ackintosh. I don't think that this change requires a major bump, everyone one 8.0 can still use previous 3.x versions.

@@ -13,11 +13,11 @@
"repositories": [
{
"type": "git",
"url": "https://github.com/kornrunner/phpunit-testlistener-vcr"
"url": "https://github.com/marmichalski/phpunit-testlistener-vcr"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

PHPUnit 10 event system support: php-vcr/phpunit-testlistener-vcr#45

@ackintosh
Copy link
Owner

Thank you for your contribution, @marmichalski ! I think that dropping support for a specific PHP version is a breaking change, so I will include this PR in the next major version (4.0). v4.0 will be released soon after the current master is released as v3.2.

@marmichalski
Copy link
Contributor Author

Thank you for your contribution, @marmichalski ! I think that dropping support for a specific PHP version is a breaking change, so I will include this PR in the next major version (4.0). v4.0 will be released soon after the current master is released as v3.2.

Hey,

in that case we could consider bumping the PHP requirement even higher (8.3?) while also updating the code with new features (ctor property promotion, readonly properties/classes, etc) :)

Copy link
Owner

@ackintosh ackintosh left a comment

Choose a reason for hiding this comment

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

LGTM!

@ackintosh ackintosh merged commit 4c012c3 into ackintosh:master Feb 22, 2025
9 of 10 checks passed
@ackintosh
Copy link
Owner

v4.0 has been released! 🙏

https://github.com/ackintosh/ganesha/releases/tag/4.0.0

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