Skip to content

Commit

Permalink
Merge pull request #14 from danielbachhuber/array-values
Browse files Browse the repository at this point in the history
Run through `array_values()` to force re-index
  • Loading branch information
danielbachhuber authored Oct 26, 2017
2 parents 217a5f0 + 7307197 commit c63f566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/php-compat-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
foreach( $fdata['messages'] as $message ) {
$message_type = strtolower( $message['type'] ) . 's';
$php_version_data[ $message_type ][] = $message['source'];
$php_version_data[ $message_type ] = array_unique( $php_version_data[ $message_type ] );
$php_version_data[ $message_type ] = array_values( array_unique( $php_version_data[ $message_type ] ) );
}
}
$cache_data['php_versions'][ $php_version ] = $php_version_data;
Expand Down

0 comments on commit c63f566

Please sign in to comment.