diff --git a/src/classes/class-wp-oauth.php b/src/classes/class-wp-oauth.php index 324213e..17b854f 100644 --- a/src/classes/class-wp-oauth.php +++ b/src/classes/class-wp-oauth.php @@ -30,17 +30,18 @@ class WPOAuthException extends Exception { /** * Create Consumer key */ + #[AllowDynamicProperties] class WPOAuthConsumer { /** * Contains the user's Consumer key. * - * @var consumer key + * @var string $key */ public $key; /** * Contains the user's consumer secret. * - * @var secret + * @var string $secret */ public $secret; @@ -72,13 +73,13 @@ class WPOAuthToken { /** * Access token * - * @var token + * @var string $key */ public $key; /** * Access secret. * - * @var secret + * @var string $secret */ public $secret; @@ -104,7 +105,7 @@ public function to_string() { } /** - * Return string. + * @return string. */ public function __toString() { return $this->to_string(); @@ -327,42 +328,42 @@ class WP_Oauth_Request { /** * Query parameters * - * @var parameters + * @var array $parameters */ private $parameters; /** * HTTP query method. * - * @var http_method + * @var string $http_method */ private $http_method; /** * Target URL * - * @var http_url + * @var string $http_url */ private $http_url; /** * Base string - base for signature string. * - * @var base_string + * @var string $base_string */ public $base_string; /** * Version. * - * @var version + * @var string $version */ public static $version = '1.0'; /** * POST input - source of input. * - * @var post_input + * @var string $post_input */ public static $post_input = 'php://input'; @@ -720,7 +721,7 @@ class WPOAuthServer { /** * Storage variable. * - * @var $data_store + * @var object $data_store */ protected $data_store; diff --git a/src/classes/class-wpt-twitteroauth.php b/src/classes/class-wpt-twitteroauth.php index 2d9693e..c3e3a51 100644 --- a/src/classes/class-wpt-twitteroauth.php +++ b/src/classes/class-wpt-twitteroauth.php @@ -22,6 +22,7 @@ /** * X.com WPOAuth class */ + #[AllowDynamicProperties] class Wpt_TwitterOAuth { /** * Contains the last HTTP status code returned