1
0
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:
Andreas Möller 2020-10-22 22:09:53 +02:00
parent 814e987c53
commit db9fc37bc7
No known key found for this signature in database
GPG Key ID: 9FB20A0BAF60E11F

View File

@ -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