Skip to content

Commit

Permalink
Call batch finished with call_user_func_array() to use static method …
Browse files Browse the repository at this point in the history
…call.
  • Loading branch information
miteshmap committed Apr 12, 2018
1 parent df38630 commit e48ffb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/core/drupal/batch.inc
Expand Up @@ -243,7 +243,7 @@ function _drush_batch_finished() {
$operations = $queue->getAllItems();
$elapsed = $batch_set['elapsed'] / 1000;
$elapsed = drush_drupal_major_version() >=8 ? \Drupal::service('date.formatter')->formatInterval($elapsed) : format_interval($elapsed);
$batch_set['finished']($batch_set['success'], $batch_set['results'], $operations, $elapsed);
call_user_func_array($batch_set['finished'], [$batch_set['success'], $batch_set['results'], $operations, $elapsed]);
}
}
}
Expand Down

0 comments on commit e48ffb5

Please sign in to comment.