Just as Bruno said, but with a minor change:
$phpmailer->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
That is, removing the closing curly bracket at the end.