I am using the core email functionality and it is showing me syntax error in vendor file
My piece of code:
if ($oModel->isTrackingNrResponse()) {
echo "Sending Tracking E-Mail \n";
$oEmail = oxNew(Email::class);
$oEmail->sendSendedNowMail($oOrder);
}
The error i get:
Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{’ in /vendor/oxid-esales/oxideshop-ce/source/Core/Email.php on line 2307
And this is the function:
private function shouldProductReviewLinksBeIncluded(): bool
{
$config = \OxidEsales\Eshop\Core\Registry::getConfig();
$reviewsEnabled = $config->getConfigParam('bl_perfLoadReviews', false);
$productReviewLinkInclusionEnabled = $config->getConfigParam('includeProductReviewLinksInEmail', false);
return $reviewsEnabled && $productReviewLinkInclusionEnabled;
}
I am using
PHP version 7.0.33
OXID CE version 6.1.4
Why is there a syntax error in core file? Any leads? This is breaking my cronjob loop