Skip to content

Commit

Permalink
Fixed for php 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
liderman committed Jun 20, 2018
1 parent 0f7ede5 commit 39571a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TextGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private function getRandomPart($text)
$openLevel = 0;
$lastPos = 0;
$isIgnore = false;
$parts = [];
$parts = array();
$textLen = mb_strlen($text, $this->encoding);
for ($i = 0; $i < $textLen; $i++) {
$currentChar = mb_substr($text, $i, 1, $this->encoding);
Expand Down

0 comments on commit 39571a0

Please sign in to comment.