Throw some exceptions so I can spot deprecated code.

This commit is contained in:
James Cole
2023-09-21 16:09:40 +02:00
parent 0b220f3288
commit 62bba0d33b
22 changed files with 51 additions and 42 deletions
@@ -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();
}
+2 -1
View File
@@ -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');