Skip to content

Commit

Permalink
Use str_plit() instead of mb_str_split().
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 10, 2019
1 parent 70181f5 commit 48dfce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct($data = [])
break;
case \is_string($data):
$this->source = static function () use ($data) {
foreach (mb_str_split($data) as $key => $value) {
foreach (\str_split($data) as $key => $value) {
yield $key => $value;
}
};
Expand Down

0 comments on commit 48dfce7

Please sign in to comment.