Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / blockComments.test
1 Comments on blocks
2 -----
3 <?php
4
5 // foo
6 {
7     // bar
8     {
9         // baz
10         $a;
11     }
12 }
13
14 // empty
15 {}
16 -----
17 array(
18     0: Expr_Variable(
19         name: a
20         comments: array(
21             0: // foo
22             1: // bar
23             2: // baz
24         )
25     )
26     1: Stmt_Nop(
27         comments: array(
28             0: // empty
29         )
30     )
31 )