Skip to content

Commit

Permalink
Replace hardcoded name with Command::getName() in output message fr…
Browse files Browse the repository at this point in the history
…om `UpdateCommand`
  • Loading branch information
phansys committed Jan 23, 2023
1 parent bc39487 commit 9022487
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $
$saveMode = ! $input->getOption('complete');

if ($saveMode) {
$notificationUi->warning('Not passing the "--complete" option to "orm:schema-tool:update" is deprecated and will not be supported when using doctrine/dbal 4');
$notificationUi->warning(sprintf(
'Not passing the "--complete" option to "%s" is deprecated and will not be supported when using doctrine/dbal 4',
$this->getName()
));
}

$sqls = $schemaTool->getUpdateSchemaSql($metadatas, $saveMode);
Expand Down

0 comments on commit 9022487

Please sign in to comment.