| 1 | <?php |
||
| 7 | class SQLite extends MySQL |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The credentials needed to connect to the database. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $credentials = [ |
||
| 15 | 'database' => 'phpunit_results.db', |
||
| 16 | 'table' => 'default', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | protected function connect(): void |
||
| 25 | |||
| 26 | protected function createTableIfNotExists(): void |
||
| 38 | |||
| 39 | protected function insert(string $test, string $time): void |
||
| 56 | } |
||
| 57 |
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.