Skip to content

Commit c4cd1c9

Browse files
committed
🚿 implode() use without $glue parameter (discouraged)
1 parent c76c70b commit c4cd1c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Data/Hanzi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public static function decodeSegment(BitBuffer $bitBuffer, int $versionNumber):s
200200
$length--;
201201
}
202202

203-
return mb_convert_encoding(implode($buffer), mb_internal_encoding(), self::ENCODING);
203+
return mb_convert_encoding(implode('', $buffer), mb_internal_encoding(), self::ENCODING);
204204
}
205205

206206
}

src/Data/Kanji.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static function decodeSegment(BitBuffer $bitBuffer, int $versionNumber):s
186186
$length--;
187187
}
188188

189-
return mb_convert_encoding(implode($buffer), mb_internal_encoding(), self::ENCODING);
189+
return mb_convert_encoding(implode('', $buffer), mb_internal_encoding(), self::ENCODING);
190190
}
191191

192192
}

0 commit comments

Comments
 (0)