powermail
powermail copied to clipboard
\In2code\Powermail\Domain\Model\Mail::getMarketingPageFunnelLastPage and \In2code\Powermail\Domain\Model\Mail::getTime might not return int
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());