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

Commit

Permalink
Merge pull request #1168 from hboomsma/php72
Browse files Browse the repository at this point in the history
Rewrote deprecated `each()` usage
  • Loading branch information
fzaninotto committed Mar 22, 2017
2 parents c6d2e74 + 1b28a84 commit 489dec4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
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

0 comments on commit 489dec4

Please sign in to comment.