Closed
Description
I believe the indentation requirement of nowdoc/heredoc is not obviously correct within a multi-line function parameter list, as the ending delimiter also needs to be indented compared to e.g. an anonymous function.
<?php
// Right?
var_dump(
'foo',
<<<'EOT'
Line 1
Line 2
Line 3
EOT,
'bar',
);
// Wrong?
var_dump(
'foo',
<<<'EOT'
Line 1
Line 2
Line 3
EOT,
'bar',
);
see https://3v4l.org/eGlGY
see #5
Metadata
Metadata
Assignees
Labels
No labels