When I install the new prestashop 1.7.7 and it upgraded me to PHP 7.2 and I'm getting this error on the web page (picture)
this is the code on the php page
public function hookdisplayNav2($param) {
$id_shop = (int)Context::getContext()->shop->id;
$staticBlocks = $this->_staticModel->getStaticblockLists($id_shop,'displayNav2');
if(count($staticBlocks)<1) return null;
$this->smarty->assign(array(
'staticblocks' => $staticBlocks,
));
return $this->display(__FILE__, 'views/templates/block.tpl');
}
Im not getting any syntax error
any help on fixing this thanks