File tree Expand file tree Collapse file tree 2 files changed +6
-21
lines changed Expand file tree Collapse file tree 2 files changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -19,20 +19,11 @@ final class CachingFileAnalyser implements FileAnalyser
19
19
{
20
20
private const CACHE_FORMAT_VERSION = 2 ;
21
21
22
- /**
23
- * @var FileAnalyser
24
- */
25
- private $ analyser ;
22
+ private FileAnalyser $ analyser ;
26
23
27
- /**
28
- * @var array
29
- */
30
- private $ cache = [];
24
+ private array $ cache = [];
31
25
32
- /**
33
- * @var string
34
- */
35
- private $ directory ;
26
+ private string $ directory ;
36
27
37
28
public function __construct (string $ directory , FileAnalyser $ analyser )
38
29
{
@@ -131,10 +122,7 @@ private function has(string $filename): bool
131
122
return true ;
132
123
}
133
124
134
- /**
135
- * @return mixed
136
- */
137
- private function read (string $ filename )
125
+ private function read (string $ filename ): array
138
126
{
139
127
return unserialize (
140
128
file_get_contents (
@@ -144,10 +132,7 @@ private function read(string $filename)
144
132
);
145
133
}
146
134
147
- /**
148
- * @param mixed $data
149
- */
150
- private function write (string $ filename , $ data ): void
135
+ private function write (string $ filename , array $ data ): void
151
136
{
152
137
file_put_contents (
153
138
$ this ->cacheFile ($ filename ),
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ final class ExecutableLinesFindingVisitor extends NodeVisitorAbstract
55
55
/**
56
56
* @psalm-var array<int, int>
57
57
*/
58
- private $ propertyLines = [];
58
+ private array $ propertyLines = [];
59
59
60
60
public function enterNode (Node $ node ): void
61
61
{
You can’t perform that action at this time.
0 commit comments