Skip to content

Commit eabb210

Browse files
Hejty1edannenberg
authored andcommitted
[srcq-OpenMage#789] Deprecated each() in Zend_Cache_Backend::setDirectives()
1 parent f392b3c commit eabb210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Zend/Cache/Backend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct(array $options = array())
7676
public function setDirectives($directives)
7777
{
7878
if (!is_array($directives)) Zend_Cache::throwException('Directives parameter must be an array');
79-
while (list($name, $value) = each($directives)) {
79+
foreach($directives as $name => $value) {
8080
if (!is_string($name)) {
8181
Zend_Cache::throwException("Incorrect option name : $name");
8282
}

0 commit comments

Comments
 (0)