Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Rewrote deprecated each() usage #1168

Merged
merged 1 commit into from
Mar 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ php:
- 5.6
- 7.0
- 7.1
- nightly
- hhvm

sudo: false
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"php": "^5.3.3|^7.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"phpunit/phpunit": "~4.0||~5.0",
"squizlabs/php_codesniffer": "~1.5",
"ext-intl": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Faker/Provider/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public static function shuffleArray($array = array())
$shuffledArray = array();
$i = 0;
reset($array);
while (list($key, $value) = each($array)) {
foreach ($array as $key => $value) {
if ($i == 0) {
$j = 0;
} else {
Expand Down