Fix type fixing

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/32137/head
Joas Schilling 4 years ago
parent 7ee982005a
commit 2ffcc08332
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 = $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>');

Loading…
Cancel
Save