mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix phpstan level 3!
This commit is contained in:
@@ -33,6 +33,7 @@ trait CreatesObjectGroups
|
||||
{
|
||||
protected function findObjectGroupById(int $groupId): ?ObjectGroup
|
||||
{
|
||||
/** @var ObjectGroup|null */
|
||||
return $this->user->objectGroups()->where('id', $groupId)->first();
|
||||
}
|
||||
|
||||
@@ -66,6 +67,7 @@ trait CreatesObjectGroups
|
||||
|
||||
protected function findObjectGroup(string $title): ?ObjectGroup
|
||||
{
|
||||
/** @var ObjectGroup|null */
|
||||
return $this->user->objectGroups()->where('title', $title)->first();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user