-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathPropertyDeclarationUnitTest.inc.fixed
More file actions
80 lines (65 loc) · 1.3 KB
/
PropertyDeclarationUnitTest.inc.fixed
File metadata and controls
80 lines (65 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
class MyClass
{
public $var = null;
protected $var = null;
private $var = null;
$var = null;
var $var = null;
static $var = null;
public var $var = null; // Parse error.
public $_var = null;
protected $_var = null;
private $_var = null;
public $foo, $bar, $var = null;
public $foo,
$bar,
$var = null;
protected
$foo,
$bar;
}
class foo
{
const bar = <<<BAZ
qux
BAZ;
}
class ABC {
public static $propA;
protected static $propB;
private static $propC;
public static $propD;
protected static
$propE;
private static /*comment*/ $propF;
}
class MyClass
{
public string $var = null;
protected ?Folder\ClassName $var = null;
var int $var = null;
static int $var = null;
private int $_var = null;
public $foo, $bar, $var = null;
public ?string $foo,
$bar,
$var = null;
protected
array $foo,
$bar;
}
class MyClass
{
public string $var = null;
protected ?Folder\ClassName $var = null;
public int $var = null;
public static int /*comment*/$var = null;
}
class ReadOnlyProp {
public readonly int $foo,
$bar,
$var = null;
protected readonly ?string $foo;
readonly array $foo;
}