#9 Prevent syntax error in unpacking nested arrays into loop variables

已合并
Borewit 6 年前 将 1 次代码提交从 issue-8合并至 master
  1. +1
    -1
      src/Logchecker.php

+ 1
- 1
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;


正在加载...
取消
保存