for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Slides\Saml2\Exceptions;
use Illuminate\Support\Facades\Log;
use Slides\Saml2\Saml2User;
class UserResolutionException extends \InvalidArgumentException
{
/**
* @param string $message
* @param Saml2User|null $saml2User
*/
public function __construct(string $message, Saml2User $saml2User = null)
if ($saml2User && config('saml2.debug')) {
config
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
if ($saml2User && /** @scrutinizer ignore-call */ config('saml2.debug')) {
Log::debug('[Saml2] User resolution failed', [
'message' => $message,
'attributes' => $saml2User->getAttributes()
]);
}
parent::__construct($message);