1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Integer keys aren't necessary

This commit is contained in:
Aidan Woods 2019-07-25 00:33:15 +02:00
parent b9bc0b7d37
commit ea55a9ffb0
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
3 changed files with 6 additions and 6 deletions

View File

@ -93,7 +93,7 @@ final class BlockQuote implements ContinuableBlock
}
/**
* @return array{0: Block[], 1: State}
* @return array{Block[], State}
*/
public function contents(State $State)
{

View File

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

View File

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