Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | protected function printResults(): void |
||
16 | { |
||
17 | $stream = fopen($this->file, 'w'); |
||
18 | |||
19 | fputcsv($stream, ['time', 'method', 'class', 'name']); |
||
20 | |||
21 | foreach (array_slice($this->tests, 0, $this->rows, true) as $test => $time) { |
||
22 | [$class, $method] = explode('::', $test); |
||
23 | |||
24 | fputcsv($stream, [(string)$time, $method, $class, $test]); |
||
25 | } |
||
26 | } |
||
27 | } |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.