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

Integração executada
Borewit integrou 1 cometimentos de %!<(string=issue-8)/code> em master há 6 anos
  1. +1
    -1
      src/Logchecker.php

+ 1
- 1
src/Logchecker.php Ver ficheiro

@@ -1024,7 +1024,7 @@ class Logchecker {
$MatchedDrives[$i] = ['drives' => [], 'offsets' => []]; $MatchedDrives[$i] = ['drives' => [], 'offsets' => []];
} }


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


Carregando…
Cancelar
Guardar