1
0
Fork 0

Fix type errors

pull/4525/merge
Jordi Boggiano 2016-01-09 17:59:22 +00:00
parent dbe7f34181
commit 47b05eab7a
3 changed files with 13 additions and 8 deletions

View File

@ -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 {

View File

@ -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);
} }

View File

@ -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)
{ {