projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Removed modules/contrib/media module to allow update to the core media module
[yaffs-website]
/
vendor
/
nikic
/
php-parser
/
test
/
code
/
formatPreservation
/
modifierChange.test
1
Modifier change
2
-----
3
<?php
4
class Foo {}
5
abstract class Bar {
6
const
7
FOO = 42;
8
9
var $foo
10
= 24;
11
12
public function
13
foo() {}
14
}
15
-----
16
$stmts[0]->flags = Stmt\Class_::MODIFIER_ABSTRACT;
17
$stmts[1]->flags = 0;
18
$stmts[1]->stmts[0]->flags = Stmt\Class_::MODIFIER_PRIVATE;
19
$stmts[1]->stmts[1]->flags = Stmt\Class_::MODIFIER_PROTECTED;
20
$stmts[1]->stmts[2]->flags |= Stmt\Class_::MODIFIER_FINAL;
21
-----
22
<?php
23
abstract class Foo {}
24
class Bar {
25
private const
26
FOO = 42;
27
28
protected $foo
29
= 24;
30
31
public final function
32
foo() {}
33
}