Fix phpstan issues.

This commit is contained in:
James Cole
2023-11-05 16:55:16 +01:00
parent 4edd9fe3da
commit a0564751d6
72 changed files with 110 additions and 138 deletions

View File

@@ -53,7 +53,7 @@ trait RecurrenceValidation
// grab model from parameter and try to set the transaction type from it
if ('invalid' === $transactionType) {
app('log')->debug('Type is invalid but we will search for it.');
/** @var Recurrence $recurrence */
/** @var Recurrence|null $recurrence */
$recurrence = $this->route()->parameter('recurrence');
if (null !== $recurrence) {
app('log')->debug('There is a recurrence in the route.');