File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ private function prepareReplacements(array $nodes, int $level): array
132
132
$ replacements [] = [
133
133
$ node ->getStartFilePos () - $ start ,
134
134
$ node ->getEndFilePos () - $ start ,
135
- '" ' . addcslashes ($ node ->value , "\x00.. \x1F" ) . '" ' ,
135
+ '" ' . addcslashes ($ node ->value , "\x00.. \x1F\" " ) . '" ' ,
136
136
];
137
137
138
138
} elseif (
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ $extractor = new Extractor(<<<'XX'
14
14
{
15
15
$s = '
16
16
a
17
- b
17
+ b"\'
18
18
c
19
19
';
20
20
21
21
$d = "
22
22
a
23
- b
23
+ b\"'
24
24
c
25
25
";
26
26
@@ -91,9 +91,9 @@ $extractor = new Extractor(<<<'XX'
91
91
92
92
Assert::match (
93
93
<<<'XX'
94
- $s = "\na\n\tb\n\t\tc\n";
94
+ $s = "\na\n\tb\"'\ n\t\tc\n";
95
95
96
- $d = "\na\n\tb\n\t\tc\n";
96
+ $d = "\na\n\tb\"'\ n\t\tc\n";
97
97
98
98
$id = "\na\n\t{$b}\n\t\t$c\n";
99
99
XX,
You can’t perform that action at this time.
0 commit comments