From: Joas Schilling Date: Wed, 27 Apr 2022 18:31:40 +0000 (+0200) Subject: Fix strict comparison X-Git-Tag: v25.0.0beta1~477^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60801d8b1c0ae6611bd2a67fdae011431fc161fa;p=nextcloud-server.git Fix strict comparison Signed-off-by: Joas Schilling --- diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index 9790a96a0fd..a4e9bd63c89 100644 --- a/core/Command/Db/Migrations/GenerateCommand.php +++ b/core/Command/Db/Migrations/GenerateCommand.php @@ -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('Unexpected migration version for current version: ' . $fullVersion . ''); $output->writeln(' - Pattern: XYYY ');