Comments placed on the same line as the here-document end token can prevent proper termination of the here-document. To resolve this issue, move the comment to the next line after the here-document end token.