Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | protected function createTableIfNotExists(): void |
||
27 | { |
||
28 | $this->connection->prepare( |
||
29 | "CREATE TABLE IF NOT EXISTS `{$this->credentials['table']}` ( |
||
30 | `time` float DEFAULT NULL, |
||
31 | `name` varchar(255) NOT NULL, |
||
32 | `method` varchar(255) DEFAULT NULL, |
||
33 | `class` varchar(255) DEFAULT NULL, |
||
34 | PRIMARY KEY (`name`) |
||
35 | );" |
||
36 | )->execute(); |
||
37 | } |
||
38 | |||
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.