| 1 | <?php |
||
| 12 | class TokenExpiredException extends InvalidTokenException |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Create an instance of this class. |
||
| 16 | * |
||
| 17 | * @param string $value The token value |
||
| 18 | * @param string $purpose The token purpose |
||
| 19 | * @param DateTime $date The token expiration date |
||
| 20 | * |
||
| 21 | * @return TokenExpiredException |
||
|
|
|||
| 22 | */ |
||
| 23 | 2 | public static function create(string $value, string $purpose, DateTime $date): self |
|
| 34 | } |
||
| 35 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.