From d5768291d75cc386f4929fc00321264d6f2b7ec9 Mon Sep 17 00:00:00 2001 From: Leevi Graham Date: Tue, 15 Jan 2019 18:09:46 +1100 Subject: [PATCH] Fixes parent call to valueIsEmpty --- src/fields/Gender.php | 2 +- src/fields/PersonName.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fields/Gender.php b/src/fields/Gender.php index 1dfe151..d914bf0 100644 --- a/src/fields/Gender.php +++ b/src/fields/Gender.php @@ -173,7 +173,7 @@ public function isValueEmpty($value, ElementInterface $element = null): bool return $value->isEmpty(); } - return parent::isValueEmpty($value); + return parent::isValueEmpty($value, $element); } } diff --git a/src/fields/PersonName.php b/src/fields/PersonName.php index 19d1096..ec26b11 100644 --- a/src/fields/PersonName.php +++ b/src/fields/PersonName.php @@ -161,7 +161,7 @@ public function isValueEmpty($value, ElementInterface $element = null): bool return $value->isEmpty(); } - return parent::isValueEmpty($value); + return parent::isValueEmpty($value, $element); } }