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

main
Paolo Rossi 3 years ago committed by GitHub
parent 7e1f4882af
commit 6e04991489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

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

Loading…
Cancel
Save