mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 12:27:05 +00:00
Fix phpstan level 3!
This commit is contained in:
@@ -129,6 +129,7 @@ class CategoryRepository implements CategoryRepositoryInterface
|
||||
*/
|
||||
public function find(int $categoryId): ?Category
|
||||
{
|
||||
/** @var Category|null */
|
||||
return $this->user->categories()->find($categoryId);
|
||||
}
|
||||
|
||||
@@ -137,6 +138,7 @@ class CategoryRepository implements CategoryRepositoryInterface
|
||||
*/
|
||||
public function findByName(string $name): ?Category
|
||||
{
|
||||
/** @var Category|null */
|
||||
return $this->user->categories()->where('name', $name)->first(['categories.*']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user