From 797d06628639cc649515985076b992287142697d Mon Sep 17 00:00:00 2001 From: Tim Nagel Date: Fri, 6 Feb 2015 23:50:39 +1100 Subject: [PATCH] Additional change for 2.5 ProgressBar support getProgress() is not available and getStep() throws a deprecation warning. --- Command/PopulateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/PopulateCommand.php b/Command/PopulateCommand.php index 5869c9c..5817c4c 100644 --- a/Command/PopulateCommand.php +++ b/Command/PopulateCommand.php @@ -170,7 +170,7 @@ class PopulateCommand extends ContainerAwareCommand $progress->setMessage(sprintf('Populating %s/%s', $index, $type)); $progress->advance($increment); - if ($progress->getProgress() >= $progress->getMaxSteps()) { + if ($progress->getProgressPercent() >= 1.0) { $progress->finish(); } };