aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-27 20:31:40 +0200
committerJoas Schilling <coding@schilljs.com>2022-04-27 20:31:40 +0200
commit60801d8b1c0ae6611bd2a67fdae011431fc161fa (patch)
treeaf6e3e3b819ff4a6d134ef13e5313b99a03f6b6b /core
parent768da60ae2bc11b415b52624121d70316c1e9de6 (diff)
downloadnextcloud-server-60801d8b1c0ae6611bd2a67fdae011431fc161fa.tar.gz
nextcloud-server-60801d8b1c0ae6611bd2a67fdae011431fc161fa.zip
Fix strict comparison
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php2
1 files changed, 1 insertions, 1 deletions
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('<comment>Unexpected migration version for current version: ' . $fullVersion . '</comment>');
$output->writeln('<comment> - Pattern: XYYY </comment>');