From ea55a9ffb0d6e31ce68ee78337ff89cf8c5c9e52 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Thu, 25 Jul 2019 00:33:15 +0200 Subject: [PATCH] Integer keys aren't necessary --- src/Components/Blocks/BlockQuote.php | 2 +- src/Components/Blocks/TList.php | 6 +++--- src/Parsedown.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Components/Blocks/BlockQuote.php b/src/Components/Blocks/BlockQuote.php index 3201f8a..3b5b17d 100644 --- a/src/Components/Blocks/BlockQuote.php +++ b/src/Components/Blocks/BlockQuote.php @@ -93,7 +93,7 @@ final class BlockQuote implements ContinuableBlock } /** - * @return array{0: Block[], 1: State} + * @return array{Block[], State} */ public function contents(State $State) { diff --git a/src/Components/Blocks/TList.php b/src/Components/Blocks/TList.php index 1622877..d45c5fd 100644 --- a/src/Components/Blocks/TList.php +++ b/src/Components/Blocks/TList.php @@ -273,12 +273,12 @@ final class TList implements ContinuableBlock } /** - * @return array{0: Block[], 1: State}[] + * @return array{Block[], State}[] */ public function items(State $State) { return \array_map( - /** @return array{0: Block[], 1: State} */ + /** @return array{Block[], State} */ function (Lines $Lines) use ($State) { return Parsedown::blocks($Lines, $State); }, @@ -317,7 +317,7 @@ final class TList implements ContinuableBlock ), \array_map( /** - * @param array{0: Block[], 1: State} $Item + * @param array{Block[], State} $Item * @return Element * */ function ($Item) { diff --git a/src/Parsedown.php b/src/Parsedown.php index 36effc9..ffb79e5 100644 --- a/src/Parsedown.php +++ b/src/Parsedown.php @@ -53,7 +53,7 @@ final class Parsedown } /** - * @return array{0: StateRenderable[], 1: State} + * @return array{StateRenderable[], State} */ public static function lines(Lines $Lines, State $State) { @@ -79,7 +79,7 @@ final class Parsedown } /** - * @return array{0: Block[], 1: State} + * @return array{Block[], State} */ public static function blocks(Lines $Lines, State $State) {