Skip to content

Commit edd7bc7

Browse files
committed
php 8.0 support
1 parent 59de90d commit edd7bc7

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,28 @@ matrix:
5858
- DB=mysql:8.0
5959
- TEST_AUTH=yes
6060
php: "7.4"
61+
- env:
62+
- DB=mariadb:5.5
63+
php: "8.0"
64+
- env:
65+
- DB=mariadb:10.0
66+
php: "8.0"
67+
- env:
68+
- DB=mariadb:10.1
69+
php: "8.0"
70+
- env:
71+
- DB=mysql:5.5
72+
php: "8.0"
73+
- env:
74+
- DB=mysql:5.6
75+
php: "8.0"
76+
- env:
77+
- DB=mysql:5.7
78+
php: "8.0"
79+
- env:
80+
- DB=mysql:8.0
81+
- TEST_AUTH=yes
82+
php: "8.0"
6183

6284
before_script:
6385
- ./.travis/initializedb.sh

src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderFormatter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private static function escapeJsonString($value): string
3232
return str_replace(
3333
["\\", '/', '"', "\n", "\r", "\t", "\x08", "\x0c"],
3434
["\\\\", "\\/", "\\\"", "\\n", "\\r", "\\t", "\\f", "\\b"],
35-
$value
35+
(string)$value
3636
);
3737
}
3838

0 commit comments

Comments
 (0)