diff --git a/View.php b/View.php index dd3f1bf..430b63b 100644 --- a/View.php +++ b/View.php @@ -86,6 +86,9 @@ class TableCell public $type; public function __construct($content, $type) { + if ($content === null) { + $content = ''; + } if (!is_string($content)) { throw new \Exception("String expected, '$content' given"); }