Commit 676666e
Fix PHP 8.4 deprecation in GPBDecodeException (#21232)
PHP 8.4 deprecates implicitly nullable parameter declarations. This patch addresses an issue in `Google\Protobuf\Internal\GPBDecodeException` which triggers a deprecation warning.
The deprecation warning that's fixed is:
```
vendor/google/protobuf/src/Google/Protobuf/Internal/GPBDecodeException.php:14
Google\Protobuf\Internal\GPBDecodeException::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead
```
See also: https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated
There are no automated tests to be added here since it simply fixes the deprecation warning.
Closes #21232
COPYBARA_INTEGRATE_REVIEW=#21232 from TomA-R:php84_nullable_gpbdecodeexception 7cdcb75
PiperOrigin-RevId: 7492658661 parent b21bcf9 commit 676666e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments