Add PHP8.4 support by fixing nullable parameter typing, drop support of PHP7.0
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 https://github.com/grpc/grpc-php/pull/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.
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: shu-yusa / name: Shusaku Yusa (b7e2b061ace204742ba38e50f1b48df4872a8ca9, 5f75c3a0f24fe7c0492e27ac361939985d951cb5, 65c9d6bafa06c81860007dc98fd3cf8510b782e5, 15dadda77146867c2bbd3f167517059c87b74b25)
@PNardman @stanley-cheung How's changing like this, and tagging 2.0.0 by the release?
@PNardman @stanley-cheung How's changing like this, and tagging 2.0.0 by the release?
Plus one would love this!
Nice I need this as well 💪🏽
@stanley-cheung would you be able to take a look at this PR?
Everyone is still waiting for this. 🙏
I noticed the README says a request should be sent to https://github.com/grpc/grpc I created a PR in that repository: https://github.com/grpc/grpc/pull/39199
synced with the update in https://github.com/grpc/grpc/pull/39199. Still waiting for a review
The update has been merged by https://github.com/grpc/grpc-php/pull/40. will close this PR