Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Fix: fix invalid parameter of mb_substr() #917

Merged
merged 1 commit into from
Jul 25, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Faker/Provider/ja_JP/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ protected static function appendEnd($text)
{
// extract the last char of $text
if (function_exists('mb_substr')) {
$last = mb_substr($text, mb_strlen($text)-1, 'UTF-8');
$last = mb_substr($text, mb_strlen($text)-1, null, 'UTF-8');
} else {
$chars = static::split($text);
$last = end($chars);
Expand Down