mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fix various phpstan issues.
This commit is contained in:
@@ -67,5 +67,5 @@ parameters:
|
|||||||
|
|
||||||
# The level 8 is the highest level. original was 5
|
# The level 8 is the highest level. original was 5
|
||||||
# 7 is more than enough, higher just leaves NULL things.
|
# 7 is more than enough, higher just leaves NULL things.
|
||||||
level: 2
|
level: 3
|
||||||
|
|
||||||
|
@@ -169,7 +169,7 @@ class RecurrenceUpdateService
|
|||||||
if (1 === $originalCount) {
|
if (1 === $originalCount) {
|
||||||
app('log')->debug('Return the first one');
|
app('log')->debug('Return the first one');
|
||||||
|
|
||||||
// @var RecurrenceRepetition|null
|
/** @var RecurrenceRepetition|null */
|
||||||
return $recurrence->recurrenceRepetitions()->first();
|
return $recurrence->recurrenceRepetitions()->first();
|
||||||
}
|
}
|
||||||
// find it:
|
// find it:
|
||||||
@@ -187,7 +187,7 @@ class RecurrenceUpdateService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @var RecurrenceRepetition|null
|
/** @var RecurrenceRepetition|null */
|
||||||
return $query->first();
|
return $query->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -175,6 +175,7 @@ class Amount
|
|||||||
if ($cache->has()) {
|
if ($cache->has()) {
|
||||||
return $cache->get();
|
return $cache->get();
|
||||||
}
|
}
|
||||||
|
/** @var TransactionCurrency $default */
|
||||||
$default = $userGroup->currencies()->where('group_default', true)->first();
|
$default = $userGroup->currencies()->where('group_default', true)->first();
|
||||||
if (null === $default) {
|
if (null === $default) {
|
||||||
$default = $this->getSystemCurrency();
|
$default = $this->getSystemCurrency();
|
||||||
|
@@ -247,6 +247,7 @@ class TransactionGroupTransformer extends AbstractTransformer
|
|||||||
|
|
||||||
private function getLocation(TransactionJournal $journal): ?Location
|
private function getLocation(TransactionJournal $journal): ?Location
|
||||||
{
|
{
|
||||||
|
/** @var Location|null */
|
||||||
return $journal->locations()->first();
|
return $journal->locations()->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user