1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 00:09:59 +01:00

Fix PHP 5.3 compatibility

This commit is contained in:
Francois Zaninotto 2014-03-03 22:12:07 +01:00
parent 64adc8d23a
commit eeb39d19eb

View File

@ -74,7 +74,7 @@ abstract class Text extends \Faker\Provider\Base
if (!isset($this->consecutiveWords[$indexSize])) {
$parts = $this->getExplodedText();
$words = array();
$index = [];
$index = array();
for ($i = 0; $i < $indexSize; $i++) {
$index[] = array_shift($parts);
}