File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,7 +258,9 @@ function docShouldHaveTrailingNewline(path) {
258258 }
259259
260260 if (
261- ( parentParent && [ "call" , "new" , "echo" ] . includes ( parentParent . kind ) ) ||
261+ ( parentParent &&
262+ [ "call" , "new" , "echo" ] . includes ( parentParent . kind ) &&
263+ parent . kind !== "call" ) ||
262264 parent . kind === "parameter"
263265 ) {
264266 const lastIndex = parentParent . arguments . length - 1 ;
Original file line number Diff line number Diff line change 5252EOD
5353, true);
5454
55+ $str = sprintf(sprintf(<<<END
56+ foo
57+ END
58+ , true));
59+
5560function foo($a = 1, $b = <<<'EOD'
5661Example of string
5762spanning multiple lines
982987 true
983988);
984989
990+ $str = sprintf(
991+ sprintf(
992+ <<<END
993+ foo
994+ END
995+ ,
996+ true
997+ )
998+ );
999+
9851000function foo(
9861001 $a = 1,
9871002 $b = <<<'EOD'
Original file line number Diff line number Diff line change 4444EOD
4545, true );
4646
47+ $ str = sprintf (sprintf (<<<END
48+ foo
49+ END
50+ , true ));
51+
4752function foo ($ a = 1 , $ b = <<<'EOD'
4853Example of string
4954spanning multiple lines
You can’t perform that action at this time.
0 commit comments