| 1 | <?php |
||
| 15 | class JWTFactory implements JWTFactoryInterface |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @inheritdoc |
||
| 20 | */ |
||
| 21 | 11 | public function getForAccessToken(AccessTokenEntityInterface $accessToken, CryptKey $privateKey) |
|
| 37 | |||
| 38 | |||
| 39 | /** |
||
| 40 | * @param AccessTokenEntityInterface $accessToken |
||
| 41 | * @return string[] |
||
| 42 | */ |
||
| 43 | 11 | public function getScopesAsList(AccessTokenEntityInterface $accessToken) |
|
| 52 | |||
| 53 | } |
||
| 54 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.