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