mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-09-03 20:52:58 -05:00
Throw some exceptions so I can spot deprecated code.
This commit is contained in:
@@ -115,7 +115,7 @@ trait ConvertsExchangeRates
|
||||
*/
|
||||
public function cerSum(array $entries): array
|
||||
{
|
||||
die('do not use me, needs refactor');
|
||||
throw new FireflyException('do not use me, needs refactor');
|
||||
if (null === $this->enabled) {
|
||||
$this->getPreference();
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace FireflyIII\Support\Request;
|
||||
use Carbon\Carbon;
|
||||
use Carbon\Exceptions\InvalidDateException;
|
||||
use Carbon\Exceptions\InvalidFormatException;
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Repositories\UserGroups\Account\AccountRepositoryInterface;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
@@ -171,7 +172,7 @@ trait ConvertsDataTypes
|
||||
// set administration ID
|
||||
// group ID
|
||||
$administrationId = auth()->user()->getAdministrationId();
|
||||
die('uses old administration ID check, needs to be updated.G');
|
||||
throw new FireflyException('uses old administration ID check, needs to be updated.G');
|
||||
$repository->setAdministrationId($administrationId);
|
||||
|
||||
$set = $this->get('accounts');
|
||||
|
||||
Reference in New Issue
Block a user