1
0
Fork 0

Fix phpstan error

pull/10234/head
Jordi Boggiano 2021-10-27 16:51:16 +02:00
parent f8ad0bb3d1
commit e5fc8a9c72
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@
namespace Composer\Test\Repository; namespace Composer\Test\Repository;
use Composer\Package\RootPackageInterface; use Composer\Package\RootPackageInterface;
use Composer\Package\RootAliasPackage;
use Composer\Repository\FilesystemRepository; use Composer\Repository\FilesystemRepository;
use Composer\Test\TestCase; use Composer\Test\TestCase;
use Composer\Json\JsonFile; use Composer\Json\JsonFile;
@ -135,6 +136,7 @@ class FilesystemRepositoryTest extends TestCase
$rootPackage->setSourceReference('sourceref-by-default'); $rootPackage->setSourceReference('sourceref-by-default');
$rootPackage->setDistReference('distref'); $rootPackage->setDistReference('distref');
$this->configureLinks($rootPackage, array('provide' => array('foo/impl' => '2.0'))); $this->configureLinks($rootPackage, array('provide' => array('foo/impl' => '2.0')));
/** @var RootAliasPackage $rootPackage */
$rootPackage = $this->getAliasPackage($rootPackage, '1.10.x-dev'); $rootPackage = $this->getAliasPackage($rootPackage, '1.10.x-dev');
$repository = new FilesystemRepository($json, true, $rootPackage); $repository = new FilesystemRepository($json, true, $rootPackage);