Skip to content

Commit

Permalink
[TASK] Updated return types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Burger committed Sep 26, 2022
1 parent ea0ebc2 commit 7ddef44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SurrealDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public function useDatabase(string $namespace, string $database): void
* @param string $thing The name of the thing in the database
* @param array $data The data of the entity
*
* @return mixed The created entity as result
* @return null The created entity as result
*
* @throws BadOpcodeException If the websocket connection failed
*/
public function create(string $thing, array $data): mixed
public function create(string $thing, array $data): array
{
return $this->send('create', [$thing, $data])['result'];
}
Expand All @@ -74,7 +74,7 @@ public function create(string $thing, array $data): mixed
*
* @throws BadOpcodeException If the websocket connection failed
*/
public function select(string $what): mixed
public function select(string $what): array
{
return $this->send('select', [$what])['result'];
}
Expand Down

0 comments on commit 7ddef44

Please sign in to comment.