Skip to content

Commit

Permalink
Merge pull request #15178 from eileenmcnaughton/wp
Browse files Browse the repository at this point in the history
Fix php 7.2+ deprecation error
  • Loading branch information
eileenmcnaughton authored Sep 7, 2019
2 parents 65ac066 + 0ab2518 commit aad2f96
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 aad2f96

Please sign in to comment.