for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class SAMLHelper
*
* SAMLHelper acts as a simple wrapper for the OneLogin implementation, so that we can configure
* and inject it via the config system.
*/
class SAMLHelper extends Object
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* @var array
public static $dependencies = [
'SAMLConfService' => '%$SAMLConfService',
];
* @var SAMLConfService
public $SAMLConfService;
* @return OneLogin_Saml2_Auth
public function getSAMLauth()
$samlConfig = $this->SAMLConfService->asArray();
return new \OneLogin_Saml2_Auth($samlConfig);
}
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.