phpstom false error when concatenated sql string

any way around this error, without using HEREDOC 

 

0
3 comments

Hi there,

I may suggest this:

$sql = "INSERT INTO ..."
. "VALUES (...)";

P.S. What is wrong with HEREDOC? The delimiter indent? As of PHP 7.3 you can have flexible indented delimiter (https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes)

0

I'll take this as "there is none"
regarding HEREDOC backward compatibility 

0

Please sign in to leave a comment.