Skip to content

Commit

Permalink
Fix #6000. drush entity:save fails with chunks option (#6001)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed May 11, 2024
1 parent 1ff63b3 commit f22b333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/core/EntityCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function loadSave(string $entity_type, $ids = null, array $options = ['bu
$this->logger()->success(dt('No matching entities found.'));
} else {
$this->io()->progressStart(count($result));
foreach (array_chunk($result, $options['chunks'], true) as $chunk) {
foreach (array_chunk($result, (int) $options['chunks'], true) as $chunk) {
drush_op([$this, 'doSave'], $entity_type, $chunk);
$this->io()->progressAdvance(count($chunk));
}
Expand Down

0 comments on commit f22b333

Please sign in to comment.