diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-19 16:18:11 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-07-25 12:49:16 +0200 |
commit | 41fca6c852c08e7e74ae2ceea8eadeda7a1348b1 (patch) | |
tree | 746bcbafd25702dd698fe4c51f54ebef2bac472a /lib/private/DB/MigrationService.php | |
parent | b729cc2a02e3bb9a1010b6dee27292d34c2ba8a4 (diff) | |
download | nextcloud-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.php | 6 |
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); } /** |