Version in base suite: 1.3.0-2 Base version: google-recaptcha_1.3.0-2 Target version: google-recaptcha_1.3.0-2+deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/g/google-recaptcha/google-recaptcha_1.3.0-2.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/g/google-recaptcha/google-recaptcha_1.3.0-2+deb13u1.dsc changelog | 6 +++ patches/Fix-compatibility-with-php-8.4.patch | 51 +++++++++++++++++++++++++++ patches/series | 1 3 files changed, 58 insertions(+) diff -Nru google-recaptcha-1.3.0/debian/changelog google-recaptcha-1.3.0/debian/changelog --- google-recaptcha-1.3.0/debian/changelog 2025-03-06 12:55:50.000000000 +0000 +++ google-recaptcha-1.3.0/debian/changelog 2025-09-03 13:10:17.000000000 +0000 @@ -1,3 +1,9 @@ +google-recaptcha (1.3.0-2+deb13u1) trixie; urgency=medium + + * Add a patch to fix PHP 8.4 deprecations + + -- William Desportes Wed, 03 Sep 2025 15:10:17 +0200 + google-recaptcha (1.3.0-2) unstable; urgency=medium * Team upload diff -Nru google-recaptcha-1.3.0/debian/patches/Fix-compatibility-with-php-8.4.patch google-recaptcha-1.3.0/debian/patches/Fix-compatibility-with-php-8.4.patch --- google-recaptcha-1.3.0/debian/patches/Fix-compatibility-with-php-8.4.patch 1970-01-01 00:00:00.000000000 +0000 +++ google-recaptcha-1.3.0/debian/patches/Fix-compatibility-with-php-8.4.patch 2025-09-03 13:10:17.000000000 +0000 @@ -0,0 +1,51 @@ +From: Vincent Langlet +Date: Thu, 20 Mar 2025 18:22:32 +0100 +Subject: Fix compatibility with php 8.4 + +Origin: upstream +Forwarded: https://github.com/google/recaptcha/pull/575 +--- + src/ReCaptcha/ReCaptcha.php | 2 +- + src/ReCaptcha/RequestMethod/CurlPost.php | 2 +- + src/ReCaptcha/RequestMethod/SocketPost.php | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/ReCaptcha/ReCaptcha.php b/src/ReCaptcha/ReCaptcha.php +index d75ce1f..b928fc8 100644 +--- a/src/ReCaptcha/ReCaptcha.php ++++ b/src/ReCaptcha/ReCaptcha.php +@@ -136,7 +136,7 @@ class ReCaptcha + * @param RequestMethod $requestMethod method used to send the request. Defaults to POST. + * @throws \RuntimeException if $secret is invalid + */ +- public function __construct($secret, RequestMethod $requestMethod = null) ++ public function __construct($secret, ?RequestMethod $requestMethod = null) + { + if (empty($secret)) { + throw new \RuntimeException('No secret provided'); +diff --git a/src/ReCaptcha/RequestMethod/CurlPost.php b/src/ReCaptcha/RequestMethod/CurlPost.php +index 1bd7cce..db3ba4a 100644 +--- a/src/ReCaptcha/RequestMethod/CurlPost.php ++++ b/src/ReCaptcha/RequestMethod/CurlPost.php +@@ -63,7 +63,7 @@ class CurlPost implements RequestMethod + * @param Curl $curl Curl resource + * @param string $siteVerifyUrl URL for reCAPTCHA siteverify API + */ +- public function __construct(Curl $curl = null, $siteVerifyUrl = null) ++ public function __construct(?Curl $curl = null, $siteVerifyUrl = null) + { + $this->curl = (is_null($curl)) ? new Curl() : $curl; + $this->siteVerifyUrl = (is_null($siteVerifyUrl)) ? ReCaptcha::SITE_VERIFY_URL : $siteVerifyUrl; +diff --git a/src/ReCaptcha/RequestMethod/SocketPost.php b/src/ReCaptcha/RequestMethod/SocketPost.php +index 19d50ab..0aa72af 100644 +--- a/src/ReCaptcha/RequestMethod/SocketPost.php ++++ b/src/ReCaptcha/RequestMethod/SocketPost.php +@@ -59,7 +59,7 @@ class SocketPost implements RequestMethod + * @param \ReCaptcha\RequestMethod\Socket $socket optional socket, injectable for testing + * @param string $siteVerifyUrl URL for reCAPTCHA siteverify API + */ +- public function __construct(Socket $socket = null, $siteVerifyUrl = null) ++ public function __construct(?Socket $socket = null, $siteVerifyUrl = null) + { + $this->socket = (is_null($socket)) ? new Socket() : $socket; + $this->siteVerifyUrl = (is_null($siteVerifyUrl)) ? ReCaptcha::SITE_VERIFY_URL : $siteVerifyUrl; diff -Nru google-recaptcha-1.3.0/debian/patches/series google-recaptcha-1.3.0/debian/patches/series --- google-recaptcha-1.3.0/debian/patches/series 2025-03-06 12:54:57.000000000 +0000 +++ google-recaptcha-1.3.0/debian/patches/series 2025-09-03 13:10:17.000000000 +0000 @@ -1,2 +1,3 @@ Updates-examples-autoload-require-path.patch Modernize-PHPUnit-syntax.patch +Fix-compatibility-with-php-8.4.patch