1 | <?php |
||
8 | class FlightDeck |
||
9 | { |
||
10 | /** |
||
11 | * Generate an authorization token |
||
12 | * |
||
13 | * @param string $name |
||
14 | * @param string $expires_at |
||
15 | * @param integer $length |
||
16 | * @return string |
||
17 | */ |
||
18 | public static function generate(string $name, string $expires_at = null, int $length = 60) : string |
||
28 | |||
29 | /** |
||
30 | * Check if the token is valid |
||
31 | * |
||
32 | * @param string $token |
||
|
|||
33 | * @return boolean |
||
34 | */ |
||
35 | public static function checkToken(string $api_token = null) : bool |
||
46 | } |
||
47 |
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.