diff --git a/src/Resources/Sheet.php b/src/Resources/Sheet.php index c141feb..57eb76a 100644 --- a/src/Resources/Sheet.php +++ b/src/Resources/Sheet.php @@ -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, diff --git a/src/SmartsheetClient.php b/src/SmartsheetClient.php index bebef98..ccdead7 100644 --- a/src/SmartsheetClient.php +++ b/src/SmartsheetClient.php @@ -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")); } /**