Browse Source

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

Fix strict comparison
tags/v25.0.0beta1
Joas Schilling 2 years ago
parent
commit
106d5f9c5c
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      core/Command/Db/Migrations/GenerateCommand.php

+ 1
- 1
core/Command/Db/Migrations/GenerateCommand.php 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>');

Loading…
Cancel
Save