diff --git a/src/Entity/Product.php b/src/Entity/Product.php index e43b5b7..c66659c 100644 --- a/src/Entity/Product.php +++ b/src/Entity/Product.php @@ -37,11 +37,11 @@ public function getType() /** * Text description, if available, of the product - * @return string + * @return string|null */ public function getText() { - return $this->data['text']; + return (isset($this->data['text'])) ? $this->data['text'] : null; } /**