diff --git a/src/Bundle/ChillMainBundle/Form/Type/ChillTextareaType.php b/src/Bundle/ChillMainBundle/Form/Type/ChillTextareaType.php index 3866dcd51..37c436f7c 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/ChillTextareaType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/ChillTextareaType.php @@ -24,7 +24,13 @@ use Symfony\Component\Form\FormView; use Symfony\Component\Form\FormInterface; /** + * Create a Textarea * + * By default, add a WYSIWYG editor. + * + * Options: + * + * * `disable_editor`: set true to disable editor * */ final class ChillTextareaType extends AbstractType diff --git a/src/Bundle/ChillMainBundle/Templating/ChillMarkdownRenderExtension.php b/src/Bundle/ChillMainBundle/Templating/ChillMarkdownRenderExtension.php index a3b32ec18..db2844cfe 100644 --- a/src/Bundle/ChillMainBundle/Templating/ChillMarkdownRenderExtension.php +++ b/src/Bundle/ChillMainBundle/Templating/ChillMarkdownRenderExtension.php @@ -29,7 +29,6 @@ use Parsedown; final class ChillMarkdownRenderExtension extends AbstractExtension { /** - * * @var Parsedown */ protected $parsedown; @@ -40,7 +39,7 @@ final class ChillMarkdownRenderExtension extends AbstractExtension $this->parsedown->setSafeMode(true); } - public function getFilters() + public function getFilters(): array { return [ new TwigFilter('chill_markdown_to_html', [$this, 'renderMarkdownToHtml'], [ @@ -49,7 +48,7 @@ final class ChillMarkdownRenderExtension extends AbstractExtension ]; } - public function renderMarkdownToHtml($var) + public function renderMarkdownToHtml(string $var): string { return $this->parsedown->parse($var); }