From 098bfcf2f979b2828ec3f13a51b1c9305bfdab38 Mon Sep 17 00:00:00 2001 From: core23 Date: Sat, 25 Feb 2023 15:43:00 +0100 Subject: [PATCH 1/2] Drop support for PHP 8.0 --- composer.json | 2 +- vendor-bin/tools/composer.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 134e6d2..409aad0 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ } ], "require": { - "php": "^8.0", + "php": "^8.1", "ext-json": "*", "psr/http-client": "^1.0", "psr/http-factory": "^1.0", diff --git a/vendor-bin/tools/composer.json b/vendor-bin/tools/composer.json index 8048759..04df3f7 100644 --- a/vendor-bin/tools/composer.json +++ b/vendor-bin/tools/composer.json @@ -20,9 +20,6 @@ "allow-plugins": { "phpstan/extension-installer": true }, - "bin-dir": "../../vendor/bin", - "platform": { - "php": "8.0.2" - } + "bin-dir": "../../vendor/bin" } } From ee4f3b72f1ed59e6de1ff6cd430a21c481b36d8b Mon Sep 17 00:00:00 2001 From: core23 Date: Sat, 25 Feb 2023 15:47:22 +0100 Subject: [PATCH 2/2] Add missing return type --- src/Exception/ApiException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exception/ApiException.php b/src/Exception/ApiException.php index fc8af72..a0b68d4 100644 --- a/src/Exception/ApiException.php +++ b/src/Exception/ApiException.php @@ -15,7 +15,7 @@ final class ApiException extends Exception { - public function __toString() + public function __toString(): string { return $this->getCode().': '.$this->getMessage(); }