Are you sure the assignment to $modules is correct as \App\Lib\Helpers\Config:...dules.modules', 'api/') (which targets App\Lib\Helpers\Config::get()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
Are you sure the assignment to $modules is correct as \App\Lib\Helpers\Config:...dules.modules', 'api/') (which targets App\Lib\Helpers\Config::get()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
Are you sure the assignment to $roles is correct as \App\Lib\Helpers\Config:...modules.roles', 'api/') (which targets App\Lib\Helpers\Config::get()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
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.