such as:

	$query = <<<EOD
	select * from {node} where uid = %d and type ='%s';
EOD;

Comments

aohrvetpv’s picture

Title: Blame gratitious use of heredoc syntax » Blame gratuitous use of heredoc syntax
Issue summary: View changes

A heredoc should not be used in your example, but I think there are legitimate uses for heredocs. How should good uses and bad uses be distinguished?

aohrvetpv’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
pfrenssen’s picture

Status: Active » Closed (works as designed)

Indeed there are legitimate uses for the heredoc syntax. We cannot distinguish between legitimate uses and illegitimate ones.