mirror of https://github.com/nextcloud/server
Merge pull request #32196 from nextcloud/bugfix/noid/fix-strict-comparison
Fix strict comparison
This commit is contained in:
commit
106d5f9c5c
|
@ -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>');
|
||||
|
|
Loading…
Reference in New Issue