mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Fix typo
This commit is contained in:
parent
2c367e7f39
commit
3b9dd59da3
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ EOT
|
|||
);
|
||||
foreach ($repos as $repository) {
|
||||
foreach ($repository->getPackages() as $package) {
|
||||
if ($packageName === $package->getName()) {
|
||||
if ($package->getName() === $input->getArgument('package')) {
|
||||
if (null === $highestVersion || version_compare($package->getVersion(), $highestVersion->getVersion(), '>=')) {
|
||||
$highestVersion = $package;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue