Fix for strict standards issue in RebuildCommand.php

[ErrorException]
Runtime Notice: Only variables should be passed by reference in /var/www/phpci/PHPCI/Command/RebuildCommand.php line 78
This commit is contained in:
Victor 2015-05-06 23:44:55 +03:00 committed by Marco Vito Moscaritolo
parent 8bf1d09afd
commit 0887bd4bc4

View file

@ -75,7 +75,8 @@ class RebuildCommand extends Command
$store = Factory::getStore('Build');
$service = new BuildService($store);
$lastBuild = array_shift($store->getLatestBuilds(null, 1));
$builds = $store->getLatestBuilds(null, 1);
$lastBuild = array_shift($builds);
$service->createDuplicateBuild($lastBuild);
$runner->run(new ArgvInput(array()), $output);