Skip to content

Commit

Permalink
Merge pull request #17 from Cheppers/hotfix/fix-return-type-hints
Browse files Browse the repository at this point in the history
Fix return type hints
  • Loading branch information
Roland Kovacsics authored May 22, 2020
2 parents e5d3b61 + d915c07 commit b7f2a3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/GatherContentClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ protected function parseLegacyResponse()
}

/**
* @return \Cheppers\GatherContent\DataTypes\Base[]
* @return array
*/
protected function parseResponseItems(array $data, $class)
{
Expand Down
12 changes: 6 additions & 6 deletions src/GatherContentClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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);

Expand All @@ -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);

Expand All @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit b7f2a3f

Please sign in to comment.