File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace Flowframe \Trend ;
44
5+ use Carbon \CarbonInterface ;
56use Carbon \CarbonPeriod ;
67use Error ;
78use Flowframe \Trend \Adapters \MySqlAdapter ;
89use Flowframe \Trend \Adapters \PgsqlAdapter ;
910use Flowframe \Trend \Adapters \SqliteAdapter ;
1011use Illuminate \Database \Eloquent \Builder ;
11- use Illuminate \Support \Carbon ;
1212use Illuminate \Support \Collection ;
1313
1414class Trend
1515{
1616 public string $ interval ;
1717
18- public Carbon $ start ;
18+ public CarbonInterface $ start ;
1919
20- public Carbon $ end ;
20+ public CarbonInterface $ end ;
2121
2222 public string $ dateColumn = 'created_at ' ;
2323
@@ -145,7 +145,7 @@ public function mapValuesToDates(Collection $values): Collection
145145 ));
146146
147147 $ placeholders = $ this ->getDatePeriod ()->map (
148- fn (Carbon $ date ) => new TrendValue (
148+ fn (CarbonInterface $ date ) => new TrendValue (
149149 date: $ date ->format ($ this ->getCarbonDateFormat ()),
150150 aggregate: 0 ,
151151 )
You can’t perform that action at this time.
0 commit comments