| 1 | <?php |
||
| 29 | class MiniAppUser extends AbstractAPI |
||
| 30 | { |
||
| 31 | private $appId; |
||
| 32 | private $secret; |
||
| 33 | private $grantType = 'authorization_code'; |
||
| 34 | private $config; |
||
| 35 | |||
| 36 | const API_JSCODE_SESSION = 'https://api.weixin.qq.com/sns/jscode2session'; |
||
| 37 | |||
| 38 | public function __construct($config) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get openid session_key expires_in by js_code. |
||
| 48 | * |
||
| 49 | * @param string $openId |
||
|
|
|||
| 50 | * @param string $lang |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function get($jsCode) |
||
| 65 | } |
||
| 66 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.