projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update for Core, with self-updated composer
[yaffs-website]
/
vendor
/
nikic
/
php-parser
/
test
/
code
/
prettyPrinter
/
commentsInCommaList.test
1
Comments in arrays and function calls
2
-----
3
<?php
4
5
$arr = [
6
// Foo
7
$foo,
8
// Bar
9
$bar,
10
// Discarded
11
];
12
[
13
// Foo
14
$foo,
15
,
16
// Bar
17
$bar,
18
] = $arr;
19
foo(
20
// Foo
21
$foo,
22
// Bar
23
$bar
24
);
25
new Foo(
26
// Foo
27
$foo
28
);
29
-----
30
!!php7
31
$arr = [
32
// Foo
33
$foo,
34
// Bar
35
$bar,
36
];
37
[
38
// Foo
39
$foo,
40
,
41
// Bar
42
$bar,
43
] = $arr;
44
foo(
45
// Foo
46
$foo,
47
// Bar
48
$bar
49
);
50
new Foo(
51
// Foo
52
$foo
53
);