Skip to content

Commit c10c2dd

Browse files
committed
Fix PHP 8.4 deprecations
1 parent c9dc49f commit c10c2dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Parsedown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ protected function isBlockCompletable($Type)
346346
#
347347
# Code
348348

349-
protected function blockCode($Line, $Block = null)
349+
protected function blockCode($Line, ?$Block = null)
350350
{
351351
if (isset($Block) and $Block['type'] === 'Paragraph' and ! isset($Block['interrupted']))
352352
{

test/ParsedownTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class ParsedownTest extends TestCase
77
{
8-
final function __construct($name = null, array $data = array(), $dataName = '')
8+
final function __construct(?$name = null, array $data = array(), $dataName = '')
99
{
1010
$this->dirs = $this->initDirs();
1111
$this->Parsedown = $this->initParsedown();

0 commit comments

Comments
 (0)