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

Commit

Permalink
Merge pull request #917 from tkawaji/fix_jajp_text
Browse files Browse the repository at this point in the history
Fix: fix invalid parameter of mb_substr()
  • Loading branch information
fzaninotto authored Jul 25, 2016
2 parents 039eeba + da25498 commit 525eabe
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 525eabe

Please sign in to comment.