Invalid body indentation level (expecting an indentation level of at least 4)
问题 I just upgraded to PHP 7.3 and I'm getting this error: Invalid body indentation level (expecting an indentation level of at least 4) Here is the code: $html = <<<HTML <html> <body> HTML test </body> </html> HTML; 回答1: This is caused by the new flexible Heredoc syntaxes in PHP 7.3. In previous versions of PHP, the closing marker was not allowed to have indentation: $string = <<<EOF Hello EOF; As of PHP 7.3, the closing marker can be indented. In this example, EOF is indented by 4 spaces. The