Skip to content

Commit

Permalink
Remove PHP 8.2 Deprecation Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Dec 29, 2022
1 parent 1653418 commit 2032d3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ParsedownExtraPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class ParsedownExtraPlugin extends ParsedownExtra {

const version = '1.3.8';
const version = '1.3.9';

public $abbreviationData = array();

Expand Down Expand Up @@ -358,7 +358,7 @@ protected function doGetContent($Element) {
}

private function doSetLink($Excerpt, $Function) {
if (!$Inline = call_user_func('parent::' . $Function, $Excerpt)) {
if (!$Inline = call_user_func(parent::class . '::' . $Function, $Excerpt)) {
return;
}
$this->doSetAttributes($Inline['element'], $this->linkAttributes, array($this->isLocal($Inline['element'], 'href')));
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
},
"authors": [
{
"name": "Taufik Nurrohman",
"homepage": "https://github.com/taufik-nurrohman",
"name": "Taufik Nurrohman",
"role": "Developer"
}
],
Expand Down

0 comments on commit 2032d3b

Please sign in to comment.