Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function up() |
||
14 | { |
||
15 | $this->createTable( |
||
16 | '{{%settings}}', |
||
17 | [ |
||
18 | 'id' => $this->primaryKey(), |
||
19 | 'type' => $this->string(255)->notNull(), |
||
20 | 'section' => $this->string(255)->notNull(), |
||
21 | 'key' => $this->string(255)->notNull(), |
||
22 | 'value' => $this->text(), |
||
23 | 'active' => $this->boolean(), |
||
24 | 'created' => $this->dateTime(), |
||
25 | 'modified' => $this->dateTime(), |
||
26 | ] |
||
27 | ); |
||
28 | } |
||
29 | |||
35 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.