1 | <?php |
||
11 | class SecondFactorVerificationService |
||
12 | { |
||
13 | /** @var SamlAuthenticationLogger */ |
||
14 | private $samlLogger; |
||
15 | |||
16 | /** @var ResponseContext */ |
||
17 | private $responseContext; |
||
18 | |||
19 | /** |
||
20 | * SecondFactorVerificationService constructor. |
||
21 | * @param SamlAuthenticationLogger $samlLogger |
||
22 | * @param ResponseContext $responseContext |
||
23 | */ |
||
24 | public function __construct(SamlAuthenticationLogger $samlLogger, ResponseContext $responseContext) |
||
29 | |||
30 | /** |
||
31 | * Proxy a GSSP authentication request to the remote GSSP SSO endpoint. |
||
32 | * |
||
33 | * The user is about to be sent to the remote GSSP application for |
||
34 | * registration. Verification is not initiated with a SAML AUthnRequest, |
||
35 | * see sendSecondFactorVerificationAuthnRequestAction(). |
||
36 | * |
||
37 | * The service provider in this context is SelfService (when registering |
||
38 | * a token) or RA (when vetting a token). |
||
39 | * |
||
40 | * @param Provider $provider |
||
41 | * @param ResponseContext $responseContext |
||
|
|||
42 | * @param string $subjectNameId |
||
43 | * @return AuthnRequest |
||
44 | */ |
||
45 | public function sendSecondFactorVerificationAuthnRequest(Provider $provider, $subjectNameId) |
||
75 | } |
||
76 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.