@@ -476,6 +476,24 @@ function b()
476476 " ;
477477}
478478
479+ // Heredoc in function call with correct indentation
480+ printf(
481+ <<<EOT
482+ Heredoc text used directly as argument
483+ in a function call.
484+ EOT
485+ ,
486+ );
487+
488+ // Heredoc in function call with wrong indentation
489+ printf(
490+ <<<EOT
491+ Heredoc text used directly as argument
492+ in a function call.
493+ EOT
494+ ,
495+ );
496+
479497=====================================output=====================================
480498<?php
481499$encapsShell = \`a $b\`;
@@ -997,6 +1015,22 @@ function b()
9971015 " ;
9981016}
9991017
1018+ // Heredoc in function call with correct indentation
1019+ printf(
1020+ <<<EOT
1021+ Heredoc text used directly as argument
1022+ in a function call.
1023+ EOT
1024+ );
1025+
1026+ // Heredoc in function call with wrong indentation
1027+ printf(
1028+ <<<EOT
1029+ Heredoc text used directly as argument
1030+ in a function call.
1031+ EOT
1032+ );
1033+
10001034================================================================================
10011035`;
10021036
@@ -1477,6 +1511,24 @@ function b()
14771511 " ;
14781512}
14791513
1514+ // Heredoc in function call with correct indentation
1515+ printf(
1516+ <<<EOT
1517+ Heredoc text used directly as argument
1518+ in a function call.
1519+ EOT
1520+ ,
1521+ );
1522+
1523+ // Heredoc in function call with wrong indentation
1524+ printf(
1525+ <<<EOT
1526+ Heredoc text used directly as argument
1527+ in a function call.
1528+ EOT
1529+ ,
1530+ );
1531+
14801532=====================================output=====================================
14811533<?php
14821534$encapsShell = \`a $b\`;
@@ -1999,6 +2051,24 @@ function b()
19992051 " ;
20002052}
20012053
2054+ // Heredoc in function call with correct indentation
2055+ printf(
2056+ <<<EOT
2057+ Heredoc text used directly as argument
2058+ in a function call.
2059+ EOT
2060+ ,
2061+ );
2062+
2063+ // Heredoc in function call with wrong indentation
2064+ printf(
2065+ <<<EOT
2066+ Heredoc text used directly as argument
2067+ in a function call.
2068+ EOT
2069+ ,
2070+ );
2071+
20022072================================================================================
20032073`;
20042074
0 commit comments