Skip to content

Commit

Permalink
Merge pull request #35 from rkoopmans/master
Browse files Browse the repository at this point in the history
String interpolation update
  • Loading branch information
rkoopmans authored Feb 21, 2023
2 parents fe42293 + 1a0623b commit 1d23f50
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
"5.6",
"7.4",
"8.0",
"8.1",
"8.2",
]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
Expand All @@ -41,7 +41,7 @@ jobs:
matrix:
php-version: [
"7.4",
"8.1",
"8.2",
]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/Tinify.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Tinify;

const VERSION = "1.6.0";
const VERSION = "1.6.1";

class Tinify {
private static $key = NULL;
Expand Down
2 changes: 1 addition & 1 deletion lib/Tinify/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1d23f50

Please sign in to comment.