File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Flowframe \Trend ;
4
4
5
+ use Carbon \CarbonInterface ;
5
6
use Carbon \CarbonPeriod ;
6
7
use Error ;
7
8
use Flowframe \Trend \Adapters \MySqlAdapter ;
8
9
use Flowframe \Trend \Adapters \PgsqlAdapter ;
9
10
use Flowframe \Trend \Adapters \SqliteAdapter ;
10
11
use Illuminate \Database \Eloquent \Builder ;
11
- use Illuminate \Support \Carbon ;
12
12
use Illuminate \Support \Collection ;
13
13
14
14
class Trend
15
15
{
16
16
public string $ interval ;
17
17
18
- public Carbon $ start ;
18
+ public CarbonInterface $ start ;
19
19
20
- public Carbon $ end ;
20
+ public CarbonInterface $ end ;
21
21
22
22
public string $ dateColumn = 'created_at ' ;
23
23
@@ -145,7 +145,7 @@ public function mapValuesToDates(Collection $values): Collection
145
145
));
146
146
147
147
$ placeholders = $ this ->getDatePeriod ()->map (
148
- fn (Carbon $ date ) => new TrendValue (
148
+ fn (CarbonInterface $ date ) => new TrendValue (
149
149
date: $ date ->format ($ this ->getCarbonDateFormat ()),
150
150
aggregate: 0 ,
151
151
)
You can’t perform that action at this time.
0 commit comments