Skip to content

Commit

Permalink
Fixed a mistake when joining root package arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinloiseau committed May 5, 2020
1 parent 98eba9b commit 7bd637e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VersionsCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class VersionsCheck
public function checkPackages(ArrayRepository $distRepository, WritableRepositoryInterface $localRepository, RootPackageInterface $rootPackage, $ignoreSubDependencies)
{
$packages = $localRepository->getPackages();
$rootRequires = array_keys($rootPackage->getRequires()) + array_keys($rootPackage->getDevRequires());
$rootRequires = array_keys($rootPackage->getRequires() + $rootPackage->getDevRequires());

foreach ($packages as $package) {
// Do not compare aliases. Aliased packages are also provided.
Expand Down

0 comments on commit 7bd637e

Please sign in to comment.