| 1 | <?php |
||
| 7 | abstract class AbstractAccessTokenCest |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Generates and stores an auth token. |
||
| 11 | * |
||
| 12 | * @param Tester $I |
||
| 13 | * @param Example $example must contain keys: |
||
|
|
|||
| 14 | * - client: string http client. |
||
| 15 | * - clientPass: string http password. |
||
| 16 | * - user: string system user. |
||
| 17 | * - userPass: string user password. |
||
| 18 | * - tokenName: token name used to store the auth token. |
||
| 19 | */ |
||
| 20 | protected function generateToken(Tester $I, Example $example) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string url route which generates the token. |
||
| 42 | */ |
||
| 43 | protected function getRoute() |
||
| 47 | } |
||
| 48 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.