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:
parent
8bf1d09afd
commit
0887bd4bc4
|
@ -75,7 +75,8 @@ class RebuildCommand extends Command
|
||||||
$store = Factory::getStore('Build');
|
$store = Factory::getStore('Build');
|
||||||
$service = new BuildService($store);
|
$service = new BuildService($store);
|
||||||
|
|
||||||
$lastBuild = array_shift($store->getLatestBuilds(null, 1));
|
$builds = $store->getLatestBuilds(null, 1);
|
||||||
|
$lastBuild = array_shift($builds);
|
||||||
$service->createDuplicateBuild($lastBuild);
|
$service->createDuplicateBuild($lastBuild);
|
||||||
|
|
||||||
$runner->run(new ArgvInput(array()), $output);
|
$runner->run(new ArgvInput(array()), $output);
|
||||||
|
|
Loading…
Reference in a new issue