marciioluucas /
phiber
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * Created by PhpStorm. |
||
| 5 | * User: marci |
||
| 6 | * Date: 13/04/2017 |
||
| 7 | * Time: 14:21 |
||
| 8 | */ |
||
| 9 | class PhiberAutoload |
||
|
0 ignored issues
–
show
|
|||
| 10 | { |
||
| 11 | function __construct() |
||
|
0 ignored issues
–
show
|
|||
| 12 | { |
||
| 13 | spl_autoload_register(function ($class) { |
||
| 14 | include_once(str_replace('\\', '/', $class . '.php')); |
||
| 15 | }); |
||
| 16 | } |
||
| 17 | } |
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.