Skip to content

Commit 7cdcb75

Browse files
committed
Fix PHP 8.4 deprecation in GPBDecodeException
PHP 8.4 deprecates implicitly nullable parameter declarations. This patch addresses an issue in Google\Protobuf\Internal\GPBDecodeException which triggers a deprecation warning
1 parent 08ec7dd commit 7cdcb75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php/src/Google/Protobuf/Internal/GPBDecodeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class GPBDecodeException extends \Exception
1414
public function __construct(
1515
$message,
1616
$code = 0,
17-
\Exception $previous = null)
17+
?\Exception $previous = null)
1818
{
1919
parent::__construct(
2020
"Error occurred during parsing: " . $message,

0 commit comments

Comments
 (0)