]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix strict comparison 32196/head
authorJoas Schilling <coding@schilljs.com>
Wed, 27 Apr 2022 18:31:40 +0000 (20:31 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 27 Apr 2022 18:31:40 +0000 (20:31 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/Command/Db/Migrations/GenerateCommand.php

index 9790a96a0fd1ac233013b5d59adb367f58969f12..a4e9bd63c89ff7426afa686dbb0b53d04284779c 100644 (file)
@@ -154,7 +154,7 @@ class {{classname}} extends SimpleMigrationStep {
 
                if ($fullVersion) {
                        [$major, $minor] = explode('.', $fullVersion);
-                       $shouldVersion = (int)$major * 1000 + (int)$minor;
+                       $shouldVersion = (string) ((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>');