diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-25 16:49:23 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-25 16:49:23 +0200 |
commit | 2ffcc08332632cddc64236917c35659939ec4f97 (patch) | |
tree | 6b18f806072e5e6f1326e82ea54172e5d9e40051 /core | |
parent | 7ee982005acfebe2a88b10b94d092161b0cf91e2 (diff) | |
download | nextcloud-server-2ffcc08332632cddc64236917c35659939ec4f97.tar.gz nextcloud-server-2ffcc08332632cddc64236917c35659939ec4f97.zip |
Fix type fixing
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/Db/Migrations/GenerateCommand.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index f35e49126a1..9790a96a0fd 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 = $major * 1000 + $minor; + $shouldVersion = (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>'); |