1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Fix types on mock tests (#10230)

* Fix types on mock tests

* Added $tty again

Co-authored-by: Jakob Vibe <jv@ipw.dk>
This commit is contained in:
jakobvibe 2021-10-27 14:56:39 +02:00 committed by GitHub
parent e89459d964
commit d06eb1ec3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -122,21 +122,25 @@ class InstallationManagerMock extends InstallationManager
parent::markAliasUninstalled($repo, $operation);
}
/** @return string[] */
public function getTrace()
{
return $this->trace;
}
/** @return PackageInterface[] */
public function getInstalledPackages()
{
return $this->installed;
}
/** @return PackageInterface[][] */
public function getUpdatedPackages()
{
return $this->updated;
}
/** @return PackageInterface[] */
public function getUninstalledPackages()
{
return $this->uninstalled;
@ -147,6 +151,7 @@ class InstallationManagerMock extends InstallationManager
// noop
}
/** @return PackageInterface[] */
public function getInstalledPackagesByType()
{
return $this->installed;