From 93e78dabee9149368c387dc25c77b6a854f45034 Mon Sep 17 00:00:00 2001 From: KS Date: Mon, 25 Jan 2021 14:07:57 +0100 Subject: [PATCH] Fixed composer autoloading path, fixed wrong phpdoc in @param --- composer.json | 2 +- lib/Henter/WeChat/OAuth.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index a84a897..02d31f2 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ }, "autoload": { "psr-0": { - "Henter\\WeChat": "lib/" + "Henter\\WeChat": "lib/Henter/WeChat/" } } } diff --git a/lib/Henter/WeChat/OAuth.php b/lib/Henter/WeChat/OAuth.php index 9f116a7..4473cf8 100644 --- a/lib/Henter/WeChat/OAuth.php +++ b/lib/Henter/WeChat/OAuth.php @@ -88,7 +88,7 @@ public function error($error = NULL){ * * @param $redirect_uri * @param string $scope - * @param null $state + * @param string|null $state * @return string */ public function getAuthorizeURL($redirect_uri, $scope = 'snsapi_login', $state = null) { @@ -107,7 +107,7 @@ public function getAuthorizeURL($redirect_uri, $scope = 'snsapi_login', $state = * * @param $redirect_uri * @param string $scope - * @param null $state + * @param string|null $state * @return string */ public function getWeChatAuthorizeURL($redirect_uri, $scope = 'snsapi_login', $state = null) { @@ -133,7 +133,7 @@ public function setAccessToken($access_token){ * get access_token * * @param string $type [code|token] - * @param $key [code|refresh_token] + * @param string $key [code|refresh_token] * @return string */ public function getAccessToken($type = 'code', $key) { @@ -256,4 +256,4 @@ function request($url, $method, $parameters) { ))->send(); } -} \ No newline at end of file +}