Skip to content

Commit

Permalink
Turn missing aliases into warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jhatlak committed Oct 21, 2024
1 parent 709482b commit 245cf62
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Phinx/Console/Command/ListAliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,11 @@ function ($alias, $class) use ($maxAliasLength, $maxClassLength) {
return self::CODE_SUCCESS;
}

self::getErrorOutput($output)->writeln(
sprintf(
'<error>No aliases defined in %s</error>',
Util::relativePath($this->config->getConfigFilePath())
)
$output->writeln(
'<comment>warning</comment> no aliases defined in ' . Util::relativePath($this->config->getConfigFilePath()),
$this->verbosityLevel
);

return self::CODE_ERROR;
return self::CODE_SUCCESS;
}
}

0 comments on commit 245cf62

Please sign in to comment.