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:
parent
b9bc0b7d37
commit
ea55a9ffb0
@ -93,7 +93,7 @@ final class BlockQuote implements ContinuableBlock
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{0: Block[], 1: State}
|
||||
* @return array{Block[], State}
|
||||
*/
|
||||
public function contents(State $State)
|
||||
{
|
||||
|
@ -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) {
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user