From 94b8a9c242cf69d59be49f44bb41470ba962e0e0 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 30 Apr 2019 07:52:49 +1000 Subject: [PATCH] dev/core#907 Fix Deprecation notice for PHP7.2 in bin/cli.class.php --- bin/cli.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.class.php b/bin/cli.class.php index aa609d3080..8cdcc9e8e7 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -146,7 +146,7 @@ class civicrm_cli { // of this script array_shift($args); - while (list($k, $arg) = each($args)) { + foreach ($args as $k => $arg) { // sanitize all user input $arg = $this->_sanitize($arg); -- 2.25.1