summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/MigrationService.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-19 16:18:11 +0200
committerJoas Schilling <coding@schilljs.com>2017-07-25 12:49:16 +0200
commit41fca6c852c08e7e74ae2ceea8eadeda7a1348b1 (patch)
tree746bcbafd25702dd698fe4c51f54ebef2bac472a /lib/private/DB/MigrationService.php
parentb729cc2a02e3bb9a1010b6dee27292d34c2ba8a4 (diff)
downloadnextcloud-server-41fca6c852c08e7e74ae2ceea8eadeda7a1348b1.tar.gz
nextcloud-server-41fca6c852c08e7e74ae2ceea8eadeda7a1348b1.zip
"Only variables must be passed by reference"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/DB/MigrationService.php')
-rw-r--r--lib/private/DB/MigrationService.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php
index 92041b5e324..45f6aee83f6 100644
--- a/lib/private/DB/MigrationService.php
+++ b/lib/private/DB/MigrationService.php
@@ -284,7 +284,8 @@ class MigrationService {
case 'latest':
$this->ensureMigrationsAreLoaded();
- return @end($this->getAvailableVersions());
+ $migrations = $this->getAvailableVersions();
+ return @end($migrations);
}
return '0';
}
@@ -316,7 +317,8 @@ class MigrationService {
if (count($m) === 0) {
return '0';
}
- return @end(array_values($m));
+ $migrations = array_values($m);
+ return @end($migrations);
}
/**