Skip to content

Commit

Permalink
[srcq-OpenMage#789] Deprecated each() in Zend_Cache_Backend::setDirec…
Browse files Browse the repository at this point in the history
…tives()
  • Loading branch information
Hejty1 authored and edannenberg committed Oct 25, 2019
1 parent 23db22a commit f2b474b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Zend/Cache/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct(array $options = array())
public function setDirectives($directives)
{
if (!is_array($directives)) Zend_Cache::throwException('Directives parameter must be an array');
while (list($name, $value) = each($directives)) {
foreach($directives as $name => $value) {
if (!is_string($name)) {
Zend_Cache::throwException("Incorrect option name : $name");
}
Expand Down

0 comments on commit f2b474b

Please sign in to comment.