You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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',
);