SonarQube - java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0

In that case, i don’t have an empty heredoc in my code. All the heredoc has either some text or some code in it and in some cases it is simply like this

       $js .= <<<EOT
    
    });

EOT;