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

Utilise constant arrays over static vars

This commit is contained in:
Aidan Woods
2019-07-25 00:45:53 +02:00
parent ea55a9ffb0
commit 37f306c3a8
6 changed files with 16 additions and 23 deletions

View File

@ -28,7 +28,7 @@ class CommonMarkTestWeak extends CommonMarkTestStrict
*/
public function __construct($name = null, array $data = [], $dataName = '')
{
$textLevelElements = \array_keys(Element::$TEXT_LEVEL_ELEMENTS);
$textLevelElements = \array_keys(Element::TEXT_LEVEL_ELEMENTS);
\array_walk(
$textLevelElements,