From 0887bd4bc4b1a74440a98b9c3667cc2a56eba0ad Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 6 May 2015 23:44:55 +0300 Subject: [PATCH] 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 --- PHPCI/Command/RebuildCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PHPCI/Command/RebuildCommand.php b/PHPCI/Command/RebuildCommand.php index 165d94c7..4c24b359 100644 --- a/PHPCI/Command/RebuildCommand.php +++ b/PHPCI/Command/RebuildCommand.php @@ -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);