diff --git a/TextGenerator.php b/TextGenerator.php index f2cf52c..caa67c4 100644 --- a/TextGenerator.php +++ b/TextGenerator.php @@ -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);