From e462fdef458b01e3253d7f91d8bcbf7608de894d Mon Sep 17 00:00:00 2001 From: Borewit Date: Wed, 2 Jan 2019 18:09:38 +0100 Subject: [PATCH] #8 Prevent syntax error in unpacking nested arrays into loop variables (#9) --- 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;