Skip to content

Commit

Permalink
getProfilingConsent() and getCustomerLanguage() -> return
Browse files Browse the repository at this point in the history
 same type as pimcore-models or else there is a fatal error
  • Loading branch information
amoser authored and dvesh3 committed Nov 10, 2021
1 parent 2d4f3ef commit 89421b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Model/Traits/CustomerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ public function getRelatedCustomerGroups()
return [];
}

public function getProfilingConsent()
public function getProfilingConsent(): ?\Pimcore\Model\DataObject\Data\Consent
{
if (is_callable('parent::getProfilingConsent')) {
return parent::getProfilingConsent();
}

return true;
return null;
}

/**
Expand Down Expand Up @@ -117,7 +117,7 @@ public function needsExportByNewsletterProviderHandler(NewsletterProviderHandler
return $this->getPublished() && $this->getActive();
}

public function getCustomerLanguage()
public function getCustomerLanguage(): ?string
{
return null;
}
Expand Down

0 comments on commit 89421b4

Please sign in to comment.