Merge pull request #32196 from nextcloud/bugfix/noid/fix-strict-comparison

Fix strict comparison
This commit is contained in:
Joas Schilling 2022-05-02 08:19:10 +02:00 committed by GitHub
commit 106d5f9c5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>');