mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 12:07:28 +08:00
fix: resolve deprecation warnings across the application
This commit is contained in:
@@ -19,7 +19,7 @@ class Coupon extends Model
|
||||
|
||||
public function getLimitPeriodAttribute($value)
|
||||
{
|
||||
return collect(json_decode($value, true))->map(function ($item) {
|
||||
return collect(json_decode((string) $value, true))->map(function ($item) {
|
||||
return PlanService::getPeriodKey($item);
|
||||
})->toArray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user