From 70425900e92ff7261dca5fe4567a16a8582031a9 Mon Sep 17 00:00:00 2001 From: Shyim <6224096+shyim@users.noreply.github.com> Date: Wed, 29 Dec 2021 13:30:50 +0100 Subject: [PATCH] Fix symfony error handler warnings, fixes #10397 (#10404) --- src/Composer/Console/Application.php | 10 ++++++---- src/Composer/IO/BaseIO.php | 18 +++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 532570cba..b5af14af8 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -20,6 +20,7 @@ use Symfony\Component\Console\Application as BaseApplication; use Symfony\Component\Console\Exception\CommandNotFoundException; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Helper\QuestionHelper; +use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; @@ -119,7 +120,7 @@ class Application extends BaseApplication } /** - * @inheritDoc + * @return int */ public function run(InputInterface $input = null, OutputInterface $output = null) { @@ -131,7 +132,7 @@ class Application extends BaseApplication } /** - * @inheritDoc + * @return int */ public function doRun(InputInterface $input, OutputInterface $output) { @@ -492,6 +493,7 @@ class Application extends BaseApplication /** * Initializes all the composer commands. + * @return \Symfony\Component\Console\Command\Command[] */ protected function getDefaultCommands() { @@ -534,7 +536,7 @@ class Application extends BaseApplication } /** - * @inheritDoc + * @return string */ public function getLongVersion() { @@ -552,7 +554,7 @@ class Application extends BaseApplication } /** - * @inheritDoc + * @return InputDefinition */ protected function getDefaultInputDefinition() { diff --git a/src/Composer/IO/BaseIO.php b/src/Composer/IO/BaseIO.php index 7974fb5ba..24a0c3b62 100644 --- a/src/Composer/IO/BaseIO.php +++ b/src/Composer/IO/BaseIO.php @@ -160,7 +160,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function emergency($message, array $context = array()) { @@ -168,7 +168,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function alert($message, array $context = array()) { @@ -176,7 +176,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function critical($message, array $context = array()) { @@ -184,7 +184,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function error($message, array $context = array()) { @@ -192,7 +192,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function warning($message, array $context = array()) { @@ -200,7 +200,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function notice($message, array $context = array()) { @@ -208,7 +208,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function info($message, array $context = array()) { @@ -216,7 +216,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function debug($message, array $context = array()) { @@ -224,7 +224,7 @@ abstract class BaseIO implements IOInterface } /** - * @inheritDoc + * @return void */ public function log($level, $message, array $context = array()) {