Skip to content

Commit

Permalink
Fix php 7.2+ deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Aug 31, 2019
1 parent cd416ca commit e28fdbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/cli.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ private function _bootstrap() {
*/
private function _validateOptions() {
$required = $this->_required_arguments;
while (list(, $var) = each($required)) {
foreach ($required as $vars) {
$var = $vars[1];
$index = '_' . $var;
if (empty($this->$index)) {
$missing_arg = '--' . $var;
Expand Down

0 comments on commit e28fdbe

Please sign in to comment.