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:
@@ -142,6 +142,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
*/
|
||||
public function find(int $billId): ?Bill
|
||||
{
|
||||
/** @var Bill|null */
|
||||
return $this->user->bills()->find($billId);
|
||||
}
|
||||
|
||||
@@ -150,6 +151,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
*/
|
||||
public function findByName(string $name): ?Bill
|
||||
{
|
||||
/** @var Bill|null */
|
||||
return $this->user->bills()->where('name', $name)->first(['bills.*']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user