From ae105192ca7a0ed2bc1fc454883749bf16cd2b70 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Sun, 18 May 2025 21:19:18 +0200 Subject: [PATCH] Add nullable typehint for param $Block in function blockCode. --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index 38edfe92..db7b3781 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -346,7 +346,7 @@ protected function isBlockCompletable($Type) # # Code - protected function blockCode($Line, $Block = null) + protected function blockCode($Line, ?array $Block = null) { if (isset($Block) and $Block['type'] === 'Paragraph' and ! isset($Block['interrupted'])) {