Fix strict comparison

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/32196/head
Joas Schilling 4 years ago
parent 768da60ae2
commit 60801d8b1c
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 2
      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>');

Loading…
Cancel
Save