File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function processMemberVar(File $phpcsFile, $stackPtr)
56
56
57
57
if ($ foundVar === null ) {
58
58
$ error = 'Missing @var tag in class property comment ' ;
59
- $ phpcsFile ->addWarning ($ error , $ commentEnd , 'MissingVar ' );
59
+ $ phpcsFile ->addWarning ($ error , $ stackPtr , 'MissingVar ' );
60
60
return ;
61
61
}
62
62
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ class Foo
10
10
/**
11
11
* Foo
12
12
*/
13
- private $ _withoutClassAttribute = '' ;
13
+ public $ _withoutClassAttribute = '' ;
14
14
15
15
/**
16
16
* @var Test
17
17
*
18
18
* Short Description
19
19
*/
20
- private $ _classAttributeWithShortDescription = '' ;
20
+ protected $ _classAttributeWithShortDescription = '' ;
21
21
22
22
/**
23
23
* @var
@@ -33,3 +33,27 @@ class Foo
33
33
34
34
private $ _missingDocBlockClassAttribute = '' ;
35
35
}
36
+
37
+ class Bar {
38
+
39
+ /**
40
+ * @var correctlyFormattedPublicClassMember
41
+ *
42
+ * Short Description
43
+ */
44
+ public $ correctlyFormattedPublicClassMember ;
45
+
46
+ /**
47
+ * @var correctlyFormattedPrivateClassMember
48
+ *
49
+ * Short Description
50
+ */
51
+ private $ correctlyFormattedPrivateClassMember ;
52
+
53
+ /**
54
+ * @var correctlyFormattedProtectedClassMember
55
+ *
56
+ * Short Description
57
+ */
58
+ protected $ correctlyFormattedProtectedClassMember ;
59
+ }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function getErrorList()
23
23
public function getWarningList ()
24
24
{
25
25
return [
26
- 12 => 1 ,
26
+ 13 => 1 ,
27
27
23 => 1 ,
28
28
30 => 1 ,
29
29
34 => 1
You can’t perform that action at this time.
0 commit comments