Skip to content

Add PHP8.4 support, drop support of EOL PHP versions #38

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shu-yusa
Copy link

@shu-yusa shu-yusa commented Feb 25, 2025

From PHP8.4, a parameter that has null as a default value has to be typed as a nullable type: https://www.php.net/manual/en/migration84.deprecated.php
In the code base, the factory methods of Status class have to be fixed to comply with this syntax. On the other hand, as pointed out in #37, nullable type is not available in 7.0 (https://www.php.net/manual/en/migration71.new-features.php), which is supported in this library.
Since the versions 7.0 - 8.0 have reached the EOL (https://www.php.net/supported-versions.php) as of now, I would like to propose dropping support of these versions, and adding support of 8.4. In order not to break users who are using this library in these EOL versions, I think the major version should be lifted.
I also found the library google/auth is not used in any place in the code base. It should be added by library users if necessary, rather than by this library.

Copy link

linux-foundation-easycla bot commented Feb 25, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@shu-yusa shu-yusa marked this pull request as ready for review February 26, 2025 02:54
@shu-yusa
Copy link
Author

@PNardman @stanley-cheung How's changing like this, and tagging 2.0.0 by the release?

@PNardman
Copy link

@PNardman @stanley-cheung How's changing like this, and tagging 2.0.0 by the release?

Plus one would love this!

@mhv666
Copy link

mhv666 commented Mar 5, 2025

Nice I need this as well 💪🏽

@shu-yusa
Copy link
Author

@stanley-cheung would you be able to take a look at this PR?

@PNardman
Copy link

PNardman commented Apr 7, 2025

Everyone is still waiting for this. 🙏

@shu-yusa
Copy link
Author

shu-yusa commented Apr 9, 2025

I noticed the README says a request should be sent to https://github.com/grpc/grpc
I created a PR in that repository: grpc/grpc#39199

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