fix: resolve deprecation warnings across the application
This commit is contained in:
1 parent
f65f1ae817
commit
50ea3bd667
3 files changed
+3
-3
No files matched your search
@@ -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