projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65ac066
)
Fix php 7.2+ deprecation error
author
eileen
<emcnaughton@wikimedia.org>
Sat, 31 Aug 2019 22:01:11 +0000
(10:01 +1200)
committer
eileen
<emcnaughton@wikimedia.org>
Sat, 7 Sep 2019 21:06:35 +0000
(09:06 +1200)
bin/cli.class.php
patch
|
blob
|
blame
|
history
diff --git
a/bin/cli.class.php
b/bin/cli.class.php
index 8cdcc9e8e7c101e1b0fe151881a0b3e7ebaf2f01..dff79069f40ae90664f266ecd761f7a2231985cf 100644
(file)
--- a/
bin/cli.class.php
+++ b/
bin/cli.class.php
@@
-294,8
+294,7
@@
class civicrm_cli {
* @return bool
*/
private function _validateOptions() {
- $required = $this->_required_arguments;
- while (list(, $var) = each($required)) {
+ foreach ($this->_required_arguments as $var) {
$index = '_' . $var;
if (empty($this->$index)) {
$missing_arg = '--' . $var;