From d915c07c2b89242d3e5d7b8a8639f4dd377ad233 Mon Sep 17 00:00:00 2001 From: Roland Kovacsics Date: Fri, 22 May 2020 18:05:30 +0200 Subject: [PATCH] Fix return type hints --- src/GatherContentClient.php | 2 +- src/GatherContentClientInterface.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/GatherContentClient.php b/src/GatherContentClient.php index 22504f2..90f71d2 100644 --- a/src/GatherContentClient.php +++ b/src/GatherContentClient.php @@ -876,7 +876,7 @@ protected function parseLegacyResponse() } /** - * @return \Cheppers\GatherContent\DataTypes\Base[] + * @return array */ protected function parseResponseItems(array $data, $class) { diff --git a/src/GatherContentClientInterface.php b/src/GatherContentClientInterface.php index 669b77d..4a56428 100644 --- a/src/GatherContentClientInterface.php +++ b/src/GatherContentClientInterface.php @@ -99,7 +99,7 @@ public function meGet(); /** * @see https://docs.gathercontent.com/v0.5/reference#get-accounts * - * @return \Cheppers\GatherContent\DataTypes\Account[] + * @return array */ public function accountsGet(); @@ -111,7 +111,7 @@ public function accountGet($accountId); /** * @see https://docs.gathercontent.com/v0.5/reference#get-projects * - * @return \Cheppers\GatherContent\DataTypes\Project[] + * @return array */ public function projectsGet($accountId); @@ -131,7 +131,7 @@ public function projectsPost($accountId, $projectName, $projectType); /** * @see https://docs.gathercontent.com/v0.5/reference#get-project-statuses * - * @return \Cheppers\GatherContent\DataTypes\Status[] + * @return array */ public function projectStatusesGet($projectId); @@ -143,7 +143,7 @@ public function projectStatusGet($projectId, $statusId); /** * @see https://docs.gathercontent.com/reference#listitems * - * @return \Cheppers\GatherContent\DataTypes\Item[] + * @return array */ public function itemsGet($projectId); @@ -219,7 +219,7 @@ public function itemChooseStatusPost($itemId, $statusId); /** * @see https://docs.gathercontent.com/reference#listtemplates * - * @return \Cheppers\GatherContent\DataTypes\Template[] + * @return array */ public function templatesGet($projectId); @@ -280,7 +280,7 @@ public function structureSaveAsTemplatePost($structureUuid, $name); /** * @see https://docs.gathercontent.com/reference#listfolders * - * @return \Cheppers\GatherContent\DataTypes\Folder[] + * @return array */ public function foldersGet($projectId, $includeTrashed = false);