Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 8, 2021
1 parent ec221d6 commit 1b603d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,11 @@ final public static function willBeAvailable(string $package, string $class, arr
// the package is installed but in dev-mode only, check if this applies to one of the parent packages too

$rootPackage = InstalledVersions::getRootPackage()['name'] ?? '';

if ('symfony/symfony' === $rootPackage) {
return true;
}

foreach ($parentPackages as $parentPackage) {
if ($rootPackage === $parentPackage || (InstalledVersions::isInstalled($parentPackage) && !InstalledVersions::isInstalled($parentPackage, false))) {
return true;
Expand Down

0 comments on commit 1b603d8

Please sign in to comment.