From f8aa618f3def51da4e71dca6009384dc67504ec9 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Sun, 11 Nov 2018 18:33:52 +0000 Subject: [PATCH] Default construct to empty text --- src/Html/Renderables/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Html/Renderables/Text.php b/src/Html/Renderables/Text.php index dce98f7..f1a4410 100644 --- a/src/Html/Renderables/Text.php +++ b/src/Html/Renderables/Text.php @@ -11,7 +11,7 @@ final class Text implements Renderable /** @var string */ private $text; - public function __construct(string $text) + public function __construct(string $text = '') { $this->text = $text; }