File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ abstract class BaseEngine implements DataTableEngineContract
172
172
*
173
173
* @var array
174
174
*/
175
- private $ appends ;
175
+ private $ appends = [] ;
176
176
177
177
/**
178
178
* Setup search keyword.
@@ -683,11 +683,11 @@ abstract public function paging();
683
683
*/
684
684
public function render ($ object = false )
685
685
{
686
- $ output = $ this -> appends + [
687
- 'draw ' => (int ) $ this ->request ['draw ' ],
688
- 'recordsTotal ' => $ this ->totalRecords ,
689
- 'recordsFiltered ' => $ this ->filteredRecords ,
690
- ] ;
686
+ $ output = array_merge ( [
687
+ 'draw ' => (int ) $ this ->request ['draw ' ],
688
+ 'recordsTotal ' => $ this ->totalRecords ,
689
+ 'recordsFiltered ' => $ this ->filteredRecords ,
690
+ ], $ this -> appends ) ;
691
691
692
692
if (isset ($ this ->transformer )) {
693
693
$ fractal = new Manager ();
You can’t perform that action at this time.
0 commit comments