1
0
Fork 0

Add rules for aliased packages when an alias is added, fixes #8902

pull/8916/head
Jordi Boggiano 2020-06-02 10:01:02 +02:00
parent dfccf8c091
commit 0ea9eafcaf
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 5 additions and 4 deletions

View File

@ -165,6 +165,7 @@ class RuleSetGenerator
$this->addedPackagesByNames[$name][] = $package; $this->addedPackagesByNames[$name][] = $package;
} }
} else { } else {
$workQueue->enqueue($package->getAliasOf());
$this->addRule(RuleSet::TYPE_PACKAGE, $this->createRequireRule($package, array($package->getAliasOf()), Rule::RULE_PACKAGE_ALIAS, $package)); $this->addRule(RuleSet::TYPE_PACKAGE, $this->createRequireRule($package, array($package->getAliasOf()), Rule::RULE_PACKAGE_ALIAS, $package));
} }

View File

@ -34,11 +34,11 @@ Your requirements could not be resolved to an installable set of packages.
Problem 1 Problem 1
- Root composer.json requires beyondcode/laravel-dump-server ^1.3 -> satisfiable by beyondcode/laravel-dump-server[1.4.0]. - Root composer.json requires beyondcode/laravel-dump-server ^1.3 -> satisfiable by beyondcode/laravel-dump-server[1.4.0].
- beyondcode/laravel-dump-server 1.4.0 requires symfony/var-dumper ^5.0 -> satisfiable by symfony/var-dumper[dev-master]. - You can only install one version of a package, so only one of these can be installed: symfony/var-dumper[dev-master, 4.4.0].
- Root composer.json requires laravel/framework ^6.8 -> satisfiable by laravel/framework[6.8.14]. - don't install symfony/var-dumper 5.2.x-dev|install symfony/var-dumper dev-master
- laravel/framework 6.8.14 requires symfony/var-dumper ^4.3.4 -> satisfiable by symfony/var-dumper[4.4.0]. - laravel/framework 6.8.14 requires symfony/var-dumper ^4.3.4 -> satisfiable by symfony/var-dumper[4.4.0].
etc... - beyondcode/laravel-dump-server 1.4.0 requires symfony/var-dumper ^5.0 -> satisfiable by symfony/var-dumper[5.2.x-dev (alias of dev-master)].
- Root composer.json requires laravel/framework ^6.8 -> satisfiable by laravel/framework[6.8.14].
--EXPECT-- --EXPECT--