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

Constructor shouldn't be part of public API

This commit is contained in:
Aidan Woods
2019-02-16 12:37:22 +00:00
parent f83ee87902
commit 3c0b528d54
24 changed files with 27 additions and 23 deletions

View File

@@ -19,7 +19,7 @@ final class SpecialCharacter implements Inline
/**
* @param string $charCodeHtml
*/
public function __construct($charCodeHtml)
private function __construct($charCodeHtml)
{
$this->charCodeHtml = $charCodeHtml;
$this->width = \strlen($charCodeHtml) + 2;