Fix type errors
parent
dbe7f34181
commit
47b05eab7a
|
@ -172,6 +172,11 @@ EOT
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $localFilename
|
||||
* @param string $newFilename
|
||||
* @param string $backupTarget
|
||||
*/
|
||||
protected function setLocalPhar($localFilename, $newFilename, $backupTarget = null)
|
||||
{
|
||||
try {
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Composer\Downloader;
|
|||
*/
|
||||
class FilesystemException extends \Exception
|
||||
{
|
||||
public function __construct($message = null, $code = null, \Exception $previous = null)
|
||||
public function __construct($message = '', $code = 0, \Exception $previous = null)
|
||||
{
|
||||
parent::__construct("Filesystem exception: \n".$message, $code, $previous);
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ class ConsoleIO extends BaseIO
|
|||
}
|
||||
|
||||
/**
|
||||
* @param array $messages
|
||||
* @param array|string $messages
|
||||
* @param bool $newline
|
||||
* @param bool $stderr
|
||||
*/
|
||||
|
@ -152,9 +152,9 @@ class ConsoleIO extends BaseIO
|
|||
}
|
||||
|
||||
/**
|
||||
* @param array $messages
|
||||
* @param array|string $messages
|
||||
* @param bool $newline
|
||||
* @param int $size
|
||||
* @param int|null $size
|
||||
* @param bool $stderr
|
||||
*/
|
||||
private function doOverwrite($messages, $newline, $size, $stderr)
|
||||
|
|
Loading…
Reference in New Issue