File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -227,15 +227,15 @@ function functionName(&$a = 0, $b = 1.0) {
227
227
"comments": [
228
228
{
229
229
"nodeType": "Comment",
230
- "text": "\/\/ comment\r\ n",
230
+ "text": "\/\/ comment\n",
231
231
"line": 2,
232
- "filePos": 7
232
+ "filePos": 6
233
233
},
234
234
{
235
235
"nodeType": "Comment_Doc",
236
236
"text": "\/** doc comment *\/",
237
237
"line": 3,
238
- "filePos": 19
238
+ "filePos": 17
239
239
}
240
240
],
241
241
"endLine": 6
@@ -245,7 +245,7 @@ function functionName(&$a = 0, $b = 1.0) {
245
245
JSON;
246
246
247
247
$ parser = new Parser \Php7 (new Lexer ());
248
- $ stmts = $ parser ->parse ($ code );
248
+ $ stmts = $ parser ->parse (canonicalize ( $ code) );
249
249
$ json = json_encode ($ stmts , JSON_PRETTY_PRINT );
250
250
$ this ->assertEquals (canonicalize ($ expected ), canonicalize ($ json ));
251
251
}
You can’t perform that action at this time.
0 commit comments