ho dei dubbi che il parser dia un errore a meta stringa heredoc.

Prova a fare le variabili senza l'heredoc ...