Ensure that group returns a group instance
This commit is contained in:
parent
3e34540227
commit
2a1c90ebce
|
@ -126,7 +126,7 @@ class Api {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public function group($groupId) {
|
public function group($groupId): Group {
|
||||||
return $this->groups()->first(function($group) use ($groupId) {
|
return $this->groups()->first(function($group) use ($groupId) {
|
||||||
return $group->id == $groupId;
|
return $group->id == $groupId;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue