From ed3b839d00d3d393f5559b4509e63c22cf72f5ce Mon Sep 17 00:00:00 2001 From: Borewit Date: Sat, 29 Dec 2018 12:40:39 +0100 Subject: [PATCH] #8 Prevent syntax error in unpacking nested arrays into loop variables --- src/Logchecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logchecker.php b/src/Logchecker.php index 79f5e36..c8d47f2 100644 --- a/src/Logchecker.php +++ b/src/Logchecker.php @@ -1024,7 +1024,7 @@ class Logchecker { $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;