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:
parent
e89459d964
commit
d06eb1ec3a
2 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue