mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Update find methods to return null
This commit is contained in:
@@ -47,18 +47,18 @@ interface BillRepositoryInterface
|
||||
*
|
||||
* @param int $billId
|
||||
*
|
||||
* @return Bill
|
||||
* @return Bill|null
|
||||
*/
|
||||
public function find(int $billId): Bill;
|
||||
public function find(int $billId): ?Bill;
|
||||
|
||||
/**
|
||||
* Find a bill by name.
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @return Bill
|
||||
* @return Bill|null
|
||||
*/
|
||||
public function findByName(string $name): Bill;
|
||||
public function findByName(string $name): ?Bill;
|
||||
|
||||
/**
|
||||
* @return Collection
|
||||
|
Reference in New Issue
Block a user