X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fincludes%2Fbatch.inc;h=77be5f33829159ed7be0aba2e2eb2cf862f9bbe8;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=f2a659d579a9c421d861f1318efc32ad2972e094;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/drush/drush/includes/batch.inc b/vendor/drush/drush/includes/batch.inc index f2a659d57..77be5f338 100644 --- a/vendor/drush/drush/includes/batch.inc +++ b/vendor/drush/drush/includes/batch.inc @@ -320,7 +320,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]); $results[$id] = $batch_set['results']; } }