Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
4 | public function __construct() { |
||
5 | $this->server = []; |
||
6 | $this->server["HTTP_HOST"] = $_SERVER["HTTP_HOST"]; |
||
7 | $this->server["REQUEST_URI"] = $_SERVER["REQUEST_URI"]; |
||
8 | $this->server["PHP_SELF"] = $_SERVER["PHP_SELF"]; |
||
9 | $this->server["RELATIVE"] = str_replace("/index.php", "", $_SERVER["PHP_SELF"]); |
||
10 | } |
||
11 | } |
||
13 |
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.