Various code cleanup

This commit is contained in:
James Cole
2023-11-29 06:36:48 +01:00
parent b9feb0aa71
commit 627db2c2df
3 changed files with 7 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ trait RecurrenceValidation
if ('invalid' === $transactionType) {
app('log')->debug('Type is invalid but we will search for it.');
/** @var Recurrence|null $recurrence */
$recurrence = $this->route()->parameter('recurrence');
$recurrence = $this->route()?->parameter('recurrence');
if (null !== $recurrence) {
app('log')->debug('There is a recurrence in the route.');
// ok so we have a recurrence should be able to extract type somehow.