From 86c477d9ca124a810a3a938249360e735fd5125d Mon Sep 17 00:00:00 2001 From: Gert de Pagter Date: Mon, 20 Nov 2023 16:57:38 +0100 Subject: [PATCH 1/3] Fix types on the CurlInterface Passing a string would result in a type error, as the `curl_set_opt` expects a string And the Curl class itself uses `declare(strict_types=1)` --- src/Curl/CurlInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Curl/CurlInterface.php b/src/Curl/CurlInterface.php index 954ebe05..e44f2f3a 100644 --- a/src/Curl/CurlInterface.php +++ b/src/Curl/CurlInterface.php @@ -44,7 +44,7 @@ public function post($url, array $data = array(), $follow_303_with_post = false) * Set Opt * * @access public - * @param string $option + * @param int $option * @param mixed $value * * @return boolean From b477aa62fcf253f155e4c8740bc390fd49417f48 Mon Sep 17 00:00:00 2001 From: Sander Date: Thu, 22 Aug 2024 13:27:18 +0200 Subject: [PATCH 2/3] Update composer.json - Add php-curl-class/php-curl-class v10 to requirements --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 28e294bc..4010dd6a 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "paynl/sdk", "version": "2.2.0", "require": { - "php-curl-class/php-curl-class": "^8.3||^9.0", + "php-curl-class/php-curl-class": "^8.3||^9.0||^10", "ext-json": "*", "ext-curl": "*" }, From 850fc9bb3ae108078186aa7809349a40ec8edea1 Mon Sep 17 00:00:00 2001 From: Sander Date: Thu, 22 Aug 2024 20:06:30 +0200 Subject: [PATCH 3/3] Update composer.json - v11 released --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4010dd6a..54b84193 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "paynl/sdk", "version": "2.2.0", "require": { - "php-curl-class/php-curl-class": "^8.3||^9.0||^10", + "php-curl-class/php-curl-class": "^8.3||^9.0||^10|^11", "ext-json": "*", "ext-curl": "*" },