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