Skip to content

Commit

Permalink
Fix return type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Kovacsics committed May 22, 2020
1 parent c47f977 commit d915c07
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 @@ -876,7 +876,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 d915c07

Please sign in to comment.