mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-20 07:21:57 +02:00
Fix: Use str_split() instead of undefined static method split()
This commit is contained in:
parent
814e987c53
commit
db9fc37bc7
@ -622,7 +622,7 @@ EOT;
|
||||
if (function_exists('mb_substr')) {
|
||||
$last = mb_substr($text, 0, mb_strlen($text) - 1, 'UTF-8');
|
||||
} else {
|
||||
$chars = static::split($text);
|
||||
$chars = str_split($text);
|
||||
$last = end($chars);
|
||||
}
|
||||
// if the last char is a not-valid-end punctuation, remove it
|
||||
|
Loading…
x
Reference in New Issue
Block a user