From 5ee20a3deede3ad8e01244e52d2299be50f575b0 Mon Sep 17 00:00:00 2001 From: Remco Koopmans Date: Mon, 20 Feb 2023 10:58:25 +0100 Subject: [PATCH 1/3] Update runner from PHP 8.1 to 8.2 --- .github/workflows/ci-cd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index b099c92..0452f0e 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -16,7 +16,7 @@ jobs: "5.6", "7.4", "8.0", - "8.1", + "8.2", ] os: [ubuntu-latest, macOS-latest, windows-latest] steps: @@ -41,7 +41,7 @@ jobs: matrix: php-version: [ "7.4", - "8.1", + "8.2", ] os: [ubuntu-latest, macOS-latest, windows-latest] steps: From bb68f48d3056654f431a49b61b2f1636e8c30482 Mon Sep 17 00:00:00 2001 From: Remco Koopmans Date: Mon, 20 Feb 2023 10:59:08 +0100 Subject: [PATCH 2/3] String interpolation fix: https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation --- lib/Tinify/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Tinify/Client.php b/lib/Tinify/Client.php index 80baed0..9ec17a3 100644 --- a/lib/Tinify/Client.php +++ b/lib/Tinify/Client.php @@ -28,7 +28,7 @@ function __construct($key, $app_identifier = NULL, $proxy = NULL) { if ($curl["version_number"] < 0x071201) { $version = $curl["version"]; - throw new ClientException("Your curl version ${version} is outdated; please upgrade to 7.18.1 or higher"); + throw new ClientException("Your curl version {$version} is outdated; please upgrade to 7.18.1 or higher"); } $this->options = array( From 1a0623b1b10d49864b01867e7bbe1bb5dc285c1f Mon Sep 17 00:00:00 2001 From: Remco Koopmans Date: Mon, 20 Feb 2023 11:07:33 +0100 Subject: [PATCH 3/3] Bump version to 1.6.1 --- CHANGES.md | 3 +++ lib/Tinify.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 75d5cc8..ff56a96 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +## 1.6.1 +Fixed string interpolation for php 8.2: https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation + ## 1.6.0 * Support to run the unittests on newer versions of PHP (5.5 +) * Add API methods for converting/transcoding and transformation diff --git a/lib/Tinify.php b/lib/Tinify.php index f6f9b0c..3c258f6 100644 --- a/lib/Tinify.php +++ b/lib/Tinify.php @@ -2,7 +2,7 @@ namespace Tinify; -const VERSION = "1.6.0"; +const VERSION = "1.6.1"; class Tinify { private static $key = NULL;