MDL-60281 general: function each() is deprecated in PHP7.2
This commit is contained in:
@@ -247,14 +247,14 @@ class _WikiDiffEngine
|
||||
continue;
|
||||
$matches = $ymatches[$line];
|
||||
reset($matches);
|
||||
while (list ($junk, $y) = each($matches))
|
||||
foreach ($matches as $y)
|
||||
if (empty($this->in_seq[$y])) {
|
||||
$k = $this->_lcs_pos($y);
|
||||
USE_ASSERTS_IN_WIKI && assert($k > 0);
|
||||
$ymids[$k] = $ymids[$k-1];
|
||||
break;
|
||||
}
|
||||
while (list ($junk, $y) = each($matches)) {
|
||||
}
|
||||
foreach ($matches as $y) {
|
||||
if ($y > $this->seq[$k-1]) {
|
||||
USE_ASSERTS_IN_WIKI && assert($y < $this->seq[$k]);
|
||||
// Optimization: this is a common case:
|
||||
|
||||
Reference in New Issue
Block a user