From 8f1e3ab281f1c6141ed951177103e35d0ac5c2c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Hejtm=C3=A1nek?= Date: Wed, 3 Jul 2019 15:50:43 +0200 Subject: [PATCH] replaced deprecated php function - each() --- lib/Zend/Cache/Backend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Zend/Cache/Backend.php b/lib/Zend/Cache/Backend.php index 8164a32f23c..df6621763c9 100644 --- a/lib/Zend/Cache/Backend.php +++ b/lib/Zend/Cache/Backend.php @@ -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"); }