| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | protected function printResults(): void |
||
| 22 | { |
||
| 23 | $stream = fopen($this->file, 'w'); |
||
| 24 | |||
| 25 | fputcsv($stream, ['time', 'method', 'class', 'name']); |
||
| 26 | |||
| 27 | foreach ($this->testsToPrint() as $test => $time) { |
||
| 28 | [$class, $method] = explode('::', $test); |
||
| 29 | |||
| 30 | fputcsv($stream, [$time, $method, $class, $test]); |
||
| 31 | } |
||
| 32 | |||
| 33 | fclose($stream); |
||
| 34 | } |
||
| 35 | } |
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.