Skip to content

Commit 6ae0128

Browse files
Ayeshxabbuh
authored andcommitted
[PHP 8.4] Fixes for implicit nullability deprecation
Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations. See: - [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types) - [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)
1 parent 87b57bf commit 6ae0128

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Parsedown.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ protected function blockHeader($Line)
570570
#
571571
# List
572572

573-
protected function blockList($Line, array $CurrentBlock = null)
573+
protected function blockList($Line, ?array $CurrentBlock = null)
574574
{
575575
list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]{1,9}+[.\)]');
576576

@@ -807,7 +807,7 @@ protected function blockRule($Line)
807807
#
808808
# Setext
809809

810-
protected function blockSetextHeader($Line, array $Block = null)
810+
protected function blockSetextHeader($Line, ?array $Block = null)
811811
{
812812
if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted']))
813813
{
@@ -893,7 +893,7 @@ protected function blockReference($Line)
893893
#
894894
# Table
895895

896-
protected function blockTable($Line, array $Block = null)
896+
protected function blockTable($Line, ?array $Block = null)
897897
{
898898
if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted']))
899899
{

0 commit comments

Comments
 (0)