`VersionCommand`: Avoid using deprecated `${}` string interpolation

This commit is contained in:
raviks789 2023-08-16 13:27:34 +02:00
parent fd984c5798
commit 6353f79528
1 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@ class VersionCommand extends Command
}
}
printf("%-${maxLength}s %-9s \n", 'MODULE', 'VERSION');
printf("%-{$maxLength}s %-9s \n", 'MODULE', 'VERSION');
foreach ($modules as $module) {
printf("%-${maxLength}s %-9s \n", $module->getName(), $module->getVersion());
printf("%-{$maxLength}s %-9s \n", $module->getName(), $module->getVersion());
}
}
}