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
31e89377ad
commit
a22390c83d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue