Skip to content

Clarify closing identifier indentation behaviour of Heredoc - #5763

Open
AlwaysVictorious wants to merge 2 commits into
php:masterfrom
AlwaysVictorious:patch-1
Open

Clarify closing identifier indentation behaviour of Heredoc#5763
AlwaysVictorious wants to merge 2 commits into
php:masterfrom
AlwaysVictorious:patch-1

Conversation

@AlwaysVictorious

Copy link
Copy Markdown

No description provided.

…e output

Updated heredoc example in string.xml to reflect indentation changes.
Clarify indentation behavior for closing identifiers in Heredoc strings. Modify the example to display the newly described  behaviour
Comment thread language/types/string.xml
the indentation will be stripped from all lines in the doc string.
The closing identifier may be indented with spaces or tabs. Whitespace
equal to the closing identifier's indentation is then removed from the
beginning of every line in the Heredoc string.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
beginning of every line in the Heredoc string.
beginning of every line in the heredoc string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants