found out what was wrong with it.. it didn't like
$docx->addHeader(array('first'=>$headerElements,'default' => $headerElements));now have just :
$docx->addHeader(array('default' => $headerElements));and that works just fine.
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it now