0
    function _doHeaders_callback_setext($matches) {
    # Terrible hack to check we haven't found an empty list item.
    if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1]))
        return $matches[0];

    $level = $matches[2]{0} == '=' ? 1 : 2; //here is the 'error'       

    $block = "<h$level>".$this->runSpanGamut($matches[1])."</h$level>";
    return "\n" . $this->hashBlock($block) . "\n\n";
}

Is it possible to disable this message? How could I fix it?

3
  • 1
    Replace the curly braces with square braces. Commented May 28, 2020 at 20:21
  • $level = $matches[2][0] == '=' ? 1 : 2; Like this? Commented May 28, 2020 at 20:33
  • 1
    Yes, that's right. Commented May 28, 2020 at 20:34

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.