Skip to content

Commit

Permalink
fix expected data types
Browse files Browse the repository at this point in the history
  • Loading branch information
jordyyau committed Nov 2, 2021
1 parent 2e50212 commit 90b8ecc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Resources/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ public function replaceRows(array $cells, string $primaryColumnName)
* Adds a row to the sheet
*
* @param array $cells
* @return array
* @return object
* @throws Exception
*/
public function createRow(array $cells): array
public function createRow(array $cells): object
{
return $this->insertRows([
'toBottom' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/SmartsheetClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getFolder(string $folderId): Folder
*/
public function getWorkspace(string $workspaceId): Workspace
{
return new Workspace($this, $this->get("workspaces/$workspaceId"));
return new Workspace($this, (array) $this->get("workspaces/$workspaceId"));
}

/**
Expand Down

0 comments on commit 90b8ecc

Please sign in to comment.