"Only variables must be passed by reference"

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-07-19 16:18:11 +02:00
parent b729cc2a02
commit 41fca6c852
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}
/**