Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | public function __construct($name = null, array $data = [], $dataName = '') |
||
8 | { |
||
9 | parent::__construct($name, $data, $dataName); |
||
10 | |||
11 | $this->config = [ |
||
12 | 'dbhost' => getenv('MYSQL_COMPAT_DBHOST'), |
||
13 | 'dbuser' => getenv('MYSQL_COMPAT_DBUSER'), |
||
14 | 'dbname' => getenv('MYSQL_COMPAT_DBNAME'), |
||
15 | 'dbpass' => getenv('MYSQL_COMPAT_DBPASS'), |
||
16 | ]; |
||
17 | } |
||
18 | } |
||
19 |
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.