fix some errors reported by phpstan
This commit is contained in:
parent
ea3e24f856
commit
e60f9373a3
2 changed files with 4 additions and 3 deletions
|
|
@ -708,7 +708,7 @@ class Markdown implements MarkdownInterface {
|
|||
|
||||
/**
|
||||
* Callback method to parse referenced anchors
|
||||
* @param string $matches
|
||||
* @param array $matches
|
||||
* @return string
|
||||
*/
|
||||
protected function _doAnchors_reference_callback($matches) {
|
||||
|
|
@ -747,7 +747,7 @@ class Markdown implements MarkdownInterface {
|
|||
|
||||
/**
|
||||
* Callback method to parse inline anchors
|
||||
* @param string $matches
|
||||
* @param array $matches
|
||||
* @return string
|
||||
*/
|
||||
protected function _doAnchors_inline_callback($matches) {
|
||||
|
|
@ -1808,7 +1808,7 @@ class Markdown implements MarkdownInterface {
|
|||
/**
|
||||
* String length function for detab. `_initDetab` will create a function to
|
||||
* handle UTF-8 if the default function does not exist.
|
||||
* @var string
|
||||
* can be a string or function
|
||||
*/
|
||||
protected $utf8_strlen = 'mb_strlen';
|
||||
|
||||
|
|
|
|||
|
|
@ -1222,6 +1222,7 @@ class MarkdownExtra extends \Michelf\Markdown {
|
|||
$head = $matches[1];
|
||||
$underline = $matches[2];
|
||||
$content = $matches[3];
|
||||
$attr = [];
|
||||
|
||||
// Remove any tailing pipes for each line.
|
||||
$head = preg_replace('/[|] *$/m', '', $head);
|
||||
|
|
|
|||
Loading…
Reference in a new issue