1
0
Fork 0

Reaching phpstan level 6 in Composer/Console (refs #10159) (#10183)

pull/10185/head
Paolo Rossi 2021-10-18 22:40:50 +02:00 committed by GitHub
parent 7e1f4882af
commit 6e04991489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View File

@ -368,7 +368,9 @@ class Application extends BaseApplication
}
/**
* {@inheritDoc}
* @param \Exception $exception
*
* @return void
*/
private function hintCommonErrors($exception)
{
@ -451,6 +453,8 @@ class Application extends BaseApplication
/**
* Removes the cached composer instance
*
* @return void
*/
public function resetComposer()
{

View File

@ -30,6 +30,8 @@ final class GithubActionError
* @param string $message
* @param null|string $file
* @param null|int $line
*
* @return void
*/
public function emit($message, $file = null, $line = null)
{

View File

@ -13,6 +13,7 @@
namespace Composer\Console;
use Symfony\Component\Console\Formatter\OutputFormatter;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
/**
* @author Jordi Boggiano <j.boggiano@seld.be>
@ -51,7 +52,7 @@ class HtmlOutputFormatter extends OutputFormatter
);
/**
* @param array $styles Array of "name => FormatterStyle" instances
* @param array<string, OutputFormatterStyle> $styles Array of "name => FormatterStyle" instances
*/
public function __construct(array $styles = array())
{
@ -59,6 +60,8 @@ class HtmlOutputFormatter extends OutputFormatter
}
/**
* @param string $message
*
* @return string
*/
public function format($message)
@ -71,6 +74,8 @@ class HtmlOutputFormatter extends OutputFormatter
}
/**
* @param string[] $matches
*
* @return string
*/
private function formatHtml($matches)