From da25498fb9cdf20f6ad91a150eacb06897537128 Mon Sep 17 00:00:00 2001 From: tkawaji Date: Thu, 19 May 2016 15:32:45 +0900 Subject: [PATCH] Fix: fix invalid parameter of mb_substr() --- src/Faker/Provider/ja_JP/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Faker/Provider/ja_JP/Text.php b/src/Faker/Provider/ja_JP/Text.php index b0a41c7983..33da229d4b 100644 --- a/src/Faker/Provider/ja_JP/Text.php +++ b/src/Faker/Provider/ja_JP/Text.php @@ -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);