Skip to content

Commit

Permalink
#8 Prevent syntax error in unpacking nested arrays into loop variables (
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit authored and itismadness committed Jan 2, 2019
1 parent b38c25a commit e462fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logchecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ private function get_drives($DriveName) {
$MatchedDrives[$i] = ['drives' => [], 'offsets' => []];
}

foreach ($this->AllDrives as [$Drive, $Offset]) {
foreach ($this->AllDrives as list($Drive, $Offset)) {
$Distance = levenshtein($Drive, $DriveName);
if ($Distance < 5) {
$MatchedDrives[$Distance]['drives'][] = $Drive;
Expand Down

0 comments on commit e462fde

Please sign in to comment.