mirror of
https://github.com/yiisoft/yii.git
synced 2026-02-19 17:11:23 +01:00
Fix deprecations: curly string access
Fix use of access to string acces using curly brackets https://www.php.net/manual/en/migration74.deprecated.php
This commit is contained in:
@@ -17,7 +17,7 @@ class MarkdownParser extends CMarkdownParser
|
||||
{
|
||||
if ($matches[3] == '-' && preg_match('{^- }', $matches[1]))
|
||||
return $matches[0];
|
||||
$level = $matches[3]{0} == '=' ? 1 : 2;
|
||||
$level = $matches[3][0] == '=' ? 1 : 2;
|
||||
$text = $this->runSpanGamut($matches[1]);
|
||||
$attr = $this->doHeaderId($text);
|
||||
$block = "<h$level$attr>".$text."</h$level>";
|
||||
|
||||
@@ -24,7 +24,7 @@ class MarkdownParser extends CMarkdownParser
|
||||
{
|
||||
if ($matches[3] == '-' && preg_match('{^- }', $matches[1]))
|
||||
return $matches[0];
|
||||
$level = $matches[3]{0} == '=' ? 1 : 2;
|
||||
$level = $matches[3][0] == '=' ? 1 : 2;
|
||||
$text = $this->runSpanGamut($matches[1]);
|
||||
$attr = $this->doHeaderId($text);
|
||||
$block = "<h$level$attr>".$text."</h$level>";
|
||||
|
||||
Reference in New Issue
Block a user