I just tried the following:
<?php
$script = <<<HEREDOC
var delUrl = '{ScriptManager::getDelUrl()}';
HEREDOC;
echo $script;
?>
And in the browser I get:
// Used by JS
var delUrl = '{ScriptManager::getDelUrl()}';
Instead of seeing the result of the static call ScriptManager::getDelUrl()
the output is the literal PHP. Is there a way to make static calls get evaluated inside HEREDOC, possibly without assigning their values to a variable before the HEREDOC?