From: Nicolas LÅ“uillet Date: Tue, 6 Dec 2016 10:44:40 +0000 (+0100) Subject: Casted maxIterations for Redis import X-Git-Tag: 2.2.0~3^2~31^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=7dc48ef820097d46382f54833f22e5b3bc2c492a;p=github%2Fwallabag%2Fwallabag.git Casted maxIterations for Redis import Simpleue\Worker wants an integer, we gave it a string --- diff --git a/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php b/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php index f793a314..2d06af44 100644 --- a/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php +++ b/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php @@ -36,7 +36,7 @@ class RedisWorkerCommand extends ContainerAwareCommand $worker = new QueueWorker( $this->getContainer()->get('wallabag_import.queue.redis.'.$serviceName), $this->getContainer()->get('wallabag_import.consumer.redis.'.$serviceName), - $input->getOption('maxIterations') + (int) $input->getOption('maxIterations') ); $worker->start();