Fix phpstan error
parent
f8ad0bb3d1
commit
e5fc8a9c72
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue