"Only variables must be passed by reference"
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
b729cc2a02
commit
41fca6c852
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue