Skip to content
This repository was archived by the owner on Jan 8, 2021. It is now read-only.
/ utf8 Public archive

Commit 79e5b68

Browse files
Replace the deprecated each with current and next
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent db26098 commit 79e5b68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Patchwork/Utf8/WindowsStreamWrapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public function dir_opendir($path, $options)
106106

107107
public function dir_readdir()
108108
{
109-
if (list(, $c) = each($this->handle)) {
109+
if (($c = current($this->handle)) !== false) {
110+
next($this->handle);
110111
return $c;
111112
}
112113

0 commit comments

Comments
 (0)