diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index 9790a96a0fd1a..a4e9bd63c89ff 100644 --- a/core/Command/Db/Migrations/GenerateCommand.php +++ b/core/Command/Db/Migrations/GenerateCommand.php @@ -154,7 +154,7 @@ public function execute(InputInterface $input, OutputInterface $output): int { if ($fullVersion) { [$major, $minor] = explode('.', $fullVersion); - $shouldVersion = (int)$major * 1000 + (int)$minor; + $shouldVersion = (string) ((int)$major * 1000 + (int)$minor); if ($version !== $shouldVersion) { $output->writeln('Unexpected migration version for current version: ' . $fullVersion . ''); $output->writeln(' - Pattern: XYYY ');