Fix strict comparison

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/32196/head
Joas Schilling 2022-04-27 20:31:40 +07:00
parent 768da60ae2
commit 60801d8b1c
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

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