Use correct methods.

This commit is contained in:
James Cole 2020-03-31 07:40:20 +02:00
parent 61521cf478
commit 8d3fc18ca6
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -246,6 +246,8 @@ class RecurrenceFormRequest extends Request
$sourceId = null; $sourceId = null;
$destinationId = null; $destinationId = null;
// TODO typeOverrule: the account validator may have another opinion on the transaction type.
switch ($this->string('transaction_type')) { switch ($this->string('transaction_type')) {
default: default:
throw new FireflyException(sprintf('Cannot handle transaction type "%s"', $this->string('transaction_type'))); // @codeCoverageIgnore throw new FireflyException(sprintf('Cannot handle transaction type "%s"', $this->string('transaction_type'))); // @codeCoverageIgnore