1 | <?php |
||
16 | class RequestEvent implements StoppableEventInterface |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * @var ServerRequestInterface |
||
21 | */ |
||
22 | private $request; |
||
23 | |||
24 | /** |
||
25 | * @var bool |
||
26 | */ |
||
27 | protected $isPropagationStopped = false; |
||
28 | |||
29 | /** |
||
30 | * RequestEvent constructor. |
||
31 | * |
||
32 | * @param string $name |
||
|
|||
33 | * @param ServerRequestInterface $request |
||
34 | */ |
||
35 | 30 | public function __construct(ServerRequestInterface $request) |
|
39 | |||
40 | public function stopPropagation() |
||
44 | |||
45 | public function isPropagationStopped(): bool |
||
49 | |||
50 | /** |
||
51 | * @return ServerRequestInterface |
||
52 | * @codeCoverageIgnore |
||
53 | */ |
||
54 | public function getRequest() |
||
58 | |||
59 | 13 | public static function clientAuthenticationFailed(ServerRequestInterface $request): self |
|
63 | |||
64 | 15 | public static function accessTokenIssued(ServerRequestInterface $request): self |
|
68 | |||
69 | 1 | public static function userAuthenticationFailed(ServerRequestInterface $request): self |
|
73 | |||
74 | 7 | public static function refreshTokenIssued(ServerRequestInterface $request): self |
|
78 | |||
79 | 1 | public static function refreshTokenClientFailed(ServerRequestInterface $request): self |
|
83 | } |
||
84 |
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.