mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Fix type fixing
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7ee982005a
commit
2ffcc08332
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ class {{classname}} extends SimpleMigrationStep {
|
|||
|
||||
if ($fullVersion) {
|
||||
[$major, $minor] = explode('.', $fullVersion);
|
||||
$shouldVersion = $major * 1000 + $minor;
|
||||
$shouldVersion = (int)$major * 1000 + (int)$minor;
|
||||
if ($version !== $shouldVersion) {
|
||||
$output->writeln('<comment>Unexpected migration version for current version: ' . $fullVersion . '</comment>');
|
||||
$output->writeln('<comment> - Pattern: XYYY </comment>');
|
||||
|
|
|
|||
Loading…
Reference in a new issue