Skip to content

Commit 4037829

Browse files
committed
Add return type hint
1 parent 41b1d38 commit 4037829

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/GraphQL/Objects/QueryObject.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ class QueryObject extends ObjectType
1818
/**
1919
* @param \Rubix\Server\Models\Model $model
2020
* @param \Rubix\Server\Models\Server $server
21+
* @return self
2122
*/
22-
public static function singleton(Model $model, Server $server)
23+
public static function singleton(Model $model, Server $server) : self
2324
{
2425
return self::$instance ?? self::$instance = new self([
2526
'name' => 'Query',

0 commit comments

Comments
 (0)