1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Constant arrays to static vars for PHP 5.5

This commit is contained in:
Aidan Woods
2019-01-20 19:06:46 +00:00
parent 37895448ba
commit 2757274854
4 changed files with 20 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ final class Markup implements ContinuableBlock
if (\preg_match('/^<[\/]?+(\w*)(?:[ ]*+'.self::REGEX_HTML_ATTRIBUTE.')*+[ ]*+(\/)?>/', $Context->line()->text(), $matches)) {
$element = \strtolower($matches[1]);
if (\array_key_exists($element, Element::TEXT_LEVEL_ELEMENTS)) {
if (\array_key_exists($element, Element::$TEXT_LEVEL_ELEMENTS)) {
return null;
}