Skip to content

Commit

Permalink
phpstan-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-staab committed Feb 4, 2025
1 parent 4910ad9 commit 45cb9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/LegacyBudgetGroupShiftCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LegacyBudgetGroupShiftCommand extends Command
public function handle(): void
{
\DB::transaction(function () {
$latestPlan = LegacyBudgetPlan::all()->last();
$latestPlan = LegacyBudgetPlan::orderBy('id', 'desc')->limit(1)->first();
$budgetGroups = LegacyBudgetGroup::where('hhp_id', $latestPlan->id)
->where('id', '>=', $this->argument('new_group_id'));
$this->info('The following amount of other groups will be shifted back: '.$budgetGroups->count());
Expand Down

0 comments on commit 45cb9cd

Please sign in to comment.