| 1 | <?php |
||
| 10 | class TokenNotFoundException extends InvalidTokenException |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Create an instance of this class. |
||
| 14 | * |
||
| 15 | * @param string $value The token value |
||
| 16 | * @param string $purpose The token purpose |
||
| 17 | * |
||
| 18 | * @return TokenNotFoundException |
||
|
|
|||
| 19 | */ |
||
| 20 | 2 | public static function create(string $value, string $purpose): self |
|
| 30 | } |
||
| 31 |
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.