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 Sep 7, 2019
1 parent 4543413 commit 5e7f834
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/cli.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ private function _bootstrap() {
* @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;
Expand Down

0 comments on commit 5e7f834

Please sign in to comment.