mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
PHPstan fixes.
This commit is contained in:
@@ -137,7 +137,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
public function findBill(?int $billId, ?string $billName): ?Bill
|
||||
{
|
||||
if (null !== $billId) {
|
||||
$searchResult = $this->find((int)$billId);
|
||||
$searchResult = $this->find($billId);
|
||||
if (null !== $searchResult) {
|
||||
app('log')->debug(sprintf('Found bill based on #%d, will return it.', $billId));
|
||||
|
||||
@@ -145,7 +145,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
}
|
||||
}
|
||||
if (null !== $billName) {
|
||||
$searchResult = $this->findByName((string)$billName);
|
||||
$searchResult = $this->findByName($billName);
|
||||
if (null !== $searchResult) {
|
||||
app('log')->debug(sprintf('Found bill based on "%s", will return it.', $billName));
|
||||
|
||||
|
Reference in New Issue
Block a user