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:
parent
64adc8d23a
commit
eeb39d19eb
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user