Skip to content

Commit 89421b4

Browse files
amoserdvesh3
authored andcommitted
getProfilingConsent() and getCustomerLanguage() -> return
same type as pimcore-models or else there is a fatal error
1 parent 2d4f3ef commit 89421b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Model/Traits/CustomerTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ public function getRelatedCustomerGroups()
6161
return [];
6262
}
6363

64-
public function getProfilingConsent()
64+
public function getProfilingConsent(): ?\Pimcore\Model\DataObject\Data\Consent
6565
{
6666
if (is_callable('parent::getProfilingConsent')) {
6767
return parent::getProfilingConsent();
6868
}
6969

70-
return true;
70+
return null;
7171
}
7272

7373
/**
@@ -117,7 +117,7 @@ public function needsExportByNewsletterProviderHandler(NewsletterProviderHandler
117117
return $this->getPublished() && $this->getActive();
118118
}
119119

120-
public function getCustomerLanguage()
120+
public function getCustomerLanguage(): ?string
121121
{
122122
return null;
123123
}

0 commit comments

Comments
 (0)