From 180c497ae75a5021fa69a7b008241d6f4abf240a Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Thu, 8 Aug 2019 16:27:56 +0200 Subject: [PATCH] [Console] add missing type hints --- .../Component/Console/Helper/DescriptorHelper.php | 9 ++------- .../Component/Console/Helper/ProgressIndicator.php | 2 -- src/Symfony/Component/Console/Helper/TableStyle.php | 10 +--------- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/Symfony/Component/Console/Helper/DescriptorHelper.php b/src/Symfony/Component/Console/Helper/DescriptorHelper.php index 8859eb131842c..f2ad9db7a194c 100644 --- a/src/Symfony/Component/Console/Helper/DescriptorHelper.php +++ b/src/Symfony/Component/Console/Helper/DescriptorHelper.php @@ -48,12 +48,9 @@ public function __construct() * * format: string, the output format name * * raw_text: boolean, sets output type as raw * - * @param object $object - * @param array $options - * * @throws InvalidArgumentException when the given format is not supported */ - public function describe(OutputInterface $output, $object, array $options = []) + public function describe(OutputInterface $output, ?object $object, array $options = []) { $options = array_merge([ 'raw_text' => false, @@ -71,11 +68,9 @@ public function describe(OutputInterface $output, $object, array $options = []) /** * Registers a descriptor. * - * @param string $format - * * @return $this */ - public function register($format, DescriptorInterface $descriptor) + public function register(string $format, DescriptorInterface $descriptor) { $this->descriptors[$format] = $descriptor; diff --git a/src/Symfony/Component/Console/Helper/ProgressIndicator.php b/src/Symfony/Component/Console/Helper/ProgressIndicator.php index 17feac35b9555..70c07f87e883c 100644 --- a/src/Symfony/Component/Console/Helper/ProgressIndicator.php +++ b/src/Symfony/Component/Console/Helper/ProgressIndicator.php @@ -73,8 +73,6 @@ public function setMessage(?string $message) /** * Starts the indicator output. - * - * @param $message */ public function start(string $message) { diff --git a/src/Symfony/Component/Console/Helper/TableStyle.php b/src/Symfony/Component/Console/Helper/TableStyle.php index 93de6082a808e..4e69d4360348b 100644 --- a/src/Symfony/Component/Console/Helper/TableStyle.php +++ b/src/Symfony/Component/Console/Helper/TableStyle.php @@ -227,11 +227,9 @@ public function getCrossingChars(): array /** * Sets header cell format. * - * @param string $cellHeaderFormat - * * @return $this */ - public function setCellHeaderFormat($cellHeaderFormat) + public function setCellHeaderFormat(string $cellHeaderFormat) { $this->cellHeaderFormat = $cellHeaderFormat; @@ -251,8 +249,6 @@ public function getCellHeaderFormat() /** * Sets row cell format. * - * @param string $cellRowFormat - * * @return $this */ public function setCellRowFormat(string $cellRowFormat) @@ -275,8 +271,6 @@ public function getCellRowFormat() /** * Sets row cell content format. * - * @param string $cellRowContentFormat - * * @return $this */ public function setCellRowContentFormat(string $cellRowContentFormat) @@ -299,8 +293,6 @@ public function getCellRowContentFormat() /** * Sets table border format. * - * @param string $borderFormat - * * @return $this */ public function setBorderFormat(string $borderFormat) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy