Add missing param types, fixes #10638
parent
c9ff588d68
commit
fd2972247f
|
@ -71,7 +71,7 @@ class LibraryInstaller implements InstallerInterface, BinaryPresenceInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function supports($packageType)
|
||||
public function supports(string $packageType)
|
||||
{
|
||||
return $packageType === $this->type || null === $this->type;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ class MetapackageInstaller implements InstallerInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function supports($packageType)
|
||||
public function supports(string $packageType)
|
||||
{
|
||||
return $packageType === 'metapackage';
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ class NoopInstaller implements InstallerInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function supports($packageType)
|
||||
public function supports(string $packageType)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ class PluginInstaller extends LibraryInstaller
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function supports($packageType)
|
||||
public function supports(string $packageType)
|
||||
{
|
||||
return $packageType === 'composer-plugin' || $packageType === 'composer-installer';
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ class PharArchiver implements ArchiverInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function archive($sources, $target, $format, array $excludes = array(), $ignoreFilters = false): string
|
||||
public function archive(string $sources, string $target, string $format, array $excludes = array(), bool $ignoreFilters = false): string
|
||||
{
|
||||
$sources = realpath($sources);
|
||||
|
||||
|
@ -97,7 +97,7 @@ class PharArchiver implements ArchiverInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function supports($format, $sourceType): bool
|
||||
public function supports(string $format, string $sourceType): bool
|
||||
{
|
||||
return isset(static::$formats[$format]);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class ZipArchiver implements ArchiverInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function archive($sources, $target, $format, array $excludes = array(), $ignoreFilters = false): string
|
||||
public function archive(string $sources, string $target, string $format, array $excludes = array(), bool $ignoreFilters = false): string
|
||||
{
|
||||
$fs = new Filesystem();
|
||||
$sources = $fs->normalizePath($sources);
|
||||
|
@ -78,7 +78,7 @@ class ZipArchiver implements ArchiverInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function supports($format, $sourceType): bool
|
||||
public function supports(string $format, string $sourceType): bool
|
||||
{
|
||||
return isset(static::$formats[$format]) && $this->compressionAvailable();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue