powermail icon indicating copy to clipboard operation
powermail copied to clipboard

\In2code\Powermail\Domain\Model\Mail::getMarketingPageFunnelLastPage and \In2code\Powermail\Domain\Model\Mail::getTime might not return int

Open web-commerce-og opened this issue 1 year ago • 0 comments

In some cases (I haven't investigated further) \In2code\Powermail\Domain\Model\Mail::getMarketingPageFunnelLastPage and \In2code\Powermail\Domain\Model\Mail::getTime might not return int but (empty) string. This will lead to:

TypeError

In2code\Powermail\Domain\Model\Mail::getMarketingPageFunnelLastPage(): Return value must be of type int, string returned or #1476109666 TYPO3\CMS\Extbase\Reflection\Exception\PropertyNotAccessibleException

The property "time" on the subject does not exist.

My use case: I have a custom DataProcessor, which passes the mail data as array to a typoscript object path using $data = ObjectAccess::getGettableProperties($this->getMail());

web-commerce-og avatar Dec 28 '23 14:12 web-commerce-og