From 70a936a7e1fef7b3286496318a632223caa3900f Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Mon, 15 Nov 2021 12:38:29 +0100 Subject: [PATCH] Fix possible return value of Customer::getProfilingConsent() --- src/Model/Customer.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Model/Customer.php b/src/Model/Customer.php index 01c267a3..b57ef8f6 100644 --- a/src/Model/Customer.php +++ b/src/Model/Customer.php @@ -20,11 +20,8 @@ class Customer extends \Pimcore\Model\DataObject\Customer implements SsoAwareCustomerInterface, PasswordRecoveryInterface { - /** - * @return bool - */ public function getProfilingConsent(): ?\Pimcore\Model\DataObject\Data\Consent { - return $this->getProfiling() ? $this->getProfiling()->getConsent() : false; + return $this->getProfiling() ? $this->getProfiling()->getConsent() : null; } }