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
/
parser
/
stmt
/
class
/
constModifiers.test
1
Class constant modifiers
2
-----
3
<?php
4
5
class Foo {
6
const A = 1;
7
public const B = 2;
8
protected const C = 3;
9
private const D = 4;
10
}
11
-----
12
!!php7
13
array(
14
0: Stmt_Class(
15
flags: 0
16
name: Foo
17
extends: null
18
implements: array(
19
)
20
stmts: array(
21
0: Stmt_ClassConst(
22
flags: 0
23
consts: array(
24
0: Const(
25
name: A
26
value: Scalar_LNumber(
27
value: 1
28
)
29
)
30
)
31
)
32
1: Stmt_ClassConst(
33
flags: MODIFIER_PUBLIC (1)
34
consts: array(
35
0: Const(
36
name: B
37
value: Scalar_LNumber(
38
value: 2
39
)
40
)
41
)
42
)
43
2: Stmt_ClassConst(
44
flags: MODIFIER_PROTECTED (2)
45
consts: array(
46
0: Const(
47
name: C
48
value: Scalar_LNumber(
49
value: 3
50
)
51
)
52
)
53
)
54
3: Stmt_ClassConst(
55
flags: MODIFIER_PRIVATE (4)
56
consts: array(
57
0: Const(
58
name: D
59
value: Scalar_LNumber(
60
value: 4
61
)
62
)
63
)
64
)
65
)
66
)
67
)