Skip to content

Commit

Permalink
Fix possible return value of Customer::getProfilingConsent()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen authored and brusch committed Nov 15, 2021
1 parent f4c4166 commit c4e60d9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Model/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit c4e60d9

Please sign in to comment.