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