Skip to content

Commit 7e996c4

Browse files
authored
Merge pull request #15758 from snipe/jerm/fix-deprecation-warning
Fix ${var} deprecation warning in License model
2 parents 73e8f16 + 69e74bb commit 7e996c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Models/License.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public static function adjustSeatCount($license, $oldSeats, $newSeats)
184184
$logAction->item_type = self::class;
185185
$logAction->item_id = $license->id;
186186
$logAction->created_by = auth()->id() ?: 1; // We don't have an id while running the importer from CLI.
187-
$logAction->note = "deleted ${change} seats";
187+
$logAction->note = "deleted {$change} seats";
188188
$logAction->target_id = null;
189189
$logAction->logaction('delete seats');
190190

@@ -216,7 +216,7 @@ public static function adjustSeatCount($license, $oldSeats, $newSeats)
216216
$logAction->item_type = self::class;
217217
$logAction->item_id = $license->id;
218218
$logAction->created_by = auth()->id() ?: 1; // Importer.
219-
$logAction->note = "added ${change} seats";
219+
$logAction->note = "added {$change} seats";
220220
$logAction->target_id = null;
221221
$logAction->logaction('add seats');
222222
}
@@ -743,4 +743,4 @@ public function scopeOrderByCreatedBy($query, $order)
743743
{
744744
return $query->leftJoin('users as admin_sort', 'licenses.created_by', '=', 'admin_sort.id')->select('licenses.*')->orderBy('admin_sort.first_name', $order)->orderBy('admin_sort.last_name', $order);
745745
}
746-
}
746+
}

0 commit comments

Comments
 (0)