Skip to content

Commit 1d23f50

Browse files
authored
Merge pull request #35 from rkoopmans/master
String interpolation update
2 parents fe42293 + 1a0623b commit 1d23f50

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci-cd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
"5.6",
1717
"7.4",
1818
"8.0",
19-
"8.1",
19+
"8.2",
2020
]
2121
os: [ubuntu-latest, macOS-latest, windows-latest]
2222
steps:
@@ -41,7 +41,7 @@ jobs:
4141
matrix:
4242
php-version: [
4343
"7.4",
44-
"8.1",
44+
"8.2",
4545
]
4646
os: [ubuntu-latest, macOS-latest, windows-latest]
4747
steps:

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.6.1
2+
Fixed string interpolation for php 8.2: https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
3+
14
## 1.6.0
25
* Support to run the unittests on newer versions of PHP (5.5 +)
36
* Add API methods for converting/transcoding and transformation

lib/Tinify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Tinify;
44

5-
const VERSION = "1.6.0";
5+
const VERSION = "1.6.1";
66

77
class Tinify {
88
private static $key = NULL;

lib/Tinify/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function __construct($key, $app_identifier = NULL, $proxy = NULL) {
2828

2929
if ($curl["version_number"] < 0x071201) {
3030
$version = $curl["version"];
31-
throw new ClientException("Your curl version ${version} is outdated; please upgrade to 7.18.1 or higher");
31+
throw new ClientException("Your curl version {$version} is outdated; please upgrade to 7.18.1 or higher");
3232
}
3333

3434
$this->options = array(

0 commit comments

Comments
 (0)