aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-05-02 08:19:10 +0200
committerGitHub <noreply@github.com>2022-05-02 08:19:10 +0200
commit106d5f9c5c13a3e888e15c0b1318e3126878459c (patch)
tree61c2410b0989812406ad805b29c8a95c50268a4a /core
parentad9915dd2c75726d472a940a3102113a52eb7d78 (diff)
parent60801d8b1c0ae6611bd2a67fdae011431fc161fa (diff)
downloadnextcloud-server-106d5f9c5c13a3e888e15c0b1318e3126878459c.tar.gz
nextcloud-server-106d5f9c5c13a3e888e15c0b1318e3126878459c.zip
Merge pull request #32196 from nextcloud/bugfix/noid/fix-strict-comparison
Fix strict comparison
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>');