Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Commit e17d723

Browse files
author
Mateu Aguiló Bosch
committed
Remove annoying warning
1 parent fd33546 commit e17d723

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TypedEntity/TypedEntity.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ public function access($op, $account = NULL) {
183183
* The property value.
184184
*/
185185
public function __get($property_name) {
186-
return $this->getEntity()->{$property_name};
186+
$entity = $this->getEntity();
187+
return empty($entity->{$property_name}) ? NULL : $entity->{$property_name};
187188
}
188189

189190
/**

0 commit comments

Comments
 (0)