File tree Expand file tree Collapse file tree 4 files changed +33
-4
lines changed Expand file tree Collapse file tree 4 files changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function processNode(
76
76
77
77
foreach ($ node ->getMethods () as $ method ) {
78
78
$ methods [$ method ->name ->toString ()] = [
79
- 'line ' => $ method ->getStartLine (),
79
+ 'line ' => $ method ->name -> getStartLine (),
80
80
'params ' => count ($ method ->params ),
81
81
'abstract ' => $ method ->isAbstract () || $ node instanceof Interface_,
82
82
'visibility ' => $ method ->flags & (Visibility::PUBLIC | Visibility::PROTECTED | Visibility::PRIVATE ),
Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ public static function provideGroupingFiles(): Traversable
546
546
[
547
547
[
548
548
'Unused AttributeGrouping\Foo::endpoint ' ,
549
- 9 ,
549
+ 10 ,
550
550
],
551
551
],
552
552
];
@@ -761,6 +761,9 @@ public static function provideFiles(): Traversable
761
761
yield 'mixed-member-const-traits-10 ' => [__DIR__ . '/data/mixed-member/traits-const-10.php ' ];
762
762
yield 'mixed-member-const-traits-14 ' => [__DIR__ . '/data/mixed-member/traits-const-14.php ' ];
763
763
yield 'mixed-member-const-traits-21 ' => [__DIR__ . '/data/mixed-member/traits-const-21.php ' ];
764
+
765
+ // other
766
+ yield 'report-lines ' => [__DIR__ . '/data/other/report-lines.php ' ];
764
767
}
765
768
766
769
/**
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types = 1 );
2
+
3
+ namespace ReportLines ;
4
+
5
+ class Foo
6
+ {
7
+ public
8
+ const
9
+ BAR // error: Unused ReportLines\Foo::BAR
10
+ =
11
+ 1
12
+ ;
13
+
14
+ #[
15
+ Bar
16
+ ]
17
+ public
18
+ function
19
+ endpoint // error: Unused ReportLines\Foo::endpoint
20
+ ()
21
+ :
22
+ void
23
+ {
24
+ }
25
+
26
+ }
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ private function setDependency(): void
31
31
{
32
32
}
33
33
34
- #[Unknown] // error: Unused Symfony\SomeController::dead
35
- public function dead (): void
34
+ #[Unknown]
35
+ public function dead (): void // error: Unused Symfony\SomeController::dead
36
36
{
37
37
}
38
38
You can’t perform that action at this time.
0 commit comments