psalm
psalm copied to clipboard
HEREDOC syntax error
Hello, psalm is throwing error for a valid PHP file:
.
.
return <<<HAVING
HAVING
min(a) >= '{$this->getStartDate()->format('Y-m-d')}' AND
max(b) < '{$this->getEndDate()->format('Y-m-d')}'
HAVING;
.
.
Error:
ERROR: ParseError - ......../Report.php:116:17 - Syntax error, unexpected T_STRING, expecting ';' on line 116 (see https://psalm.dev/173)
min(a) >= '{$this->getStartDate()->format('Y-m-d')}' AND
sandbox link: https://psalm.dev/r/e01590ee87
This code is not valid PHP
(since PHP 7.3: https://3v4l.org/VAFVj)