Skip to content

Commit 18cfe26

Browse files
authored
Merge pull request #62 from SimonFrings/deprecated-utf8-decode
Update test suite to remove deprecated `utf8_decode()` in preparation for PHP 8.2
2 parents eff9657 + 925169f commit 18cfe26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/FunctionalDatabaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public function provideDataWillBeReturnedWithType()
480480
['hello', 'TEXT'],
481481
['hellö', 'TEXT'],
482482
["hello\tworld\r\n", 'TEXT'],
483-
[utf8_decode('hello wörld!'), 'BLOB'],
483+
["hello w\xF6rld!", 'BLOB'],
484484
["hello\x7fö", 'BLOB'],
485485
["\x03\x02\x001", 'BLOB'],
486486
["a\000b", 'BLOB']

tests/Io/BlockingDatabaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function provideDataWillBeReturnedWithType()
109109
['hello', 'TEXT'],
110110
['hellö', 'TEXT'],
111111
["hello\tworld\r\n", 'TEXT'],
112-
[utf8_decode('hello wörld!'), 'BLOB'],
112+
["hello w\xF6rld!", 'BLOB'],
113113
["hello\x7fö", 'BLOB'],
114114
["\x03\x02\x001", 'BLOB'],
115115
["a\000b", 'BLOB']

0 commit comments

Comments
 (0)