Re: Parse error: Invalid body indentation level

From: Date: Mon, 28 May 2018 12:51:00 +0000
Subject: Re: Parse error: Invalid body indentation level
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-102148@lists.php.net to get a copy of this message
On Mon, May 28, 2018 at 2:24 PM, Sebastian Bergmann <sebastian@php.net> wrote: > Hi! > > https://github.com/sebastianbergmann/diff/blob/ > master/tests/ParserTest.php#L79 > triggers a > > Parse error: Invalid body indentation level (expecting an indentation > level of at least 1) in /path/to/ParserTest.php on line 79 > > with current PHP 7.3.0-dev (master); the code in question works fine with > PHP 7.1 and PHP 7.2. > > Is this intended behavior? Is this related to > https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes? > Yes, this is an expected result under the flexible heredoc RFC. To avoid issues, please use a heredoc label that does not occur within the string. Nikita

« previous php.internals (#102148) next »