File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -43,23 +43,22 @@ public function map($row): array
43
43
return $ this ->columns
44
44
->map (function (Column $ column , $ index ) use ($ row ) {
45
45
$ property = $ column ['data ' ];
46
- $ row = (array ) $ row ;
47
46
48
- if ($ row[ $ property] instanceof \DateTime) {
47
+ if ($ row->{ $ property} instanceof \DateTime) {
49
48
$ this ->dates [] = $ index ;
50
49
51
- return Date::dateTimeToExcel ($ row[ $ property] );
50
+ return Date::dateTimeToExcel ($ row->{ $ property} );
52
51
}
53
52
54
53
if ($ this ->wantsDateFormat ($ column )) {
55
54
$ this ->dates [] = $ index ;
56
55
57
- $ dateValue = $ row[ $ property] ;
56
+ $ dateValue = $ row->{ $ property} ;
58
57
59
58
return $ dateValue ? Date::dateTimeToExcel (Carbon::parse ($ dateValue )) : '' ;
60
59
}
61
60
62
- return $ row[ $ property] ;
61
+ return $ row->{ $ property} ;
63
62
})
64
63
->toArray ();
65
64
}
You can’t perform that action at this time.
0 commit comments