From 12c4b717ed1152b34859db299747db8df9b9539a Mon Sep 17 00:00:00 2001 From: Raissa North Date: Mon, 29 Jan 2018 15:59:46 +1300 Subject: [PATCH] API Remove default values from GridField class constructors --- src/Admin/GridFieldCategorisationConfig.php | 2 +- src/Admin/GridFieldMergeAction.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Admin/GridFieldCategorisationConfig.php b/src/Admin/GridFieldCategorisationConfig.php index eac622e..e62c4ee 100644 --- a/src/Admin/GridFieldCategorisationConfig.php +++ b/src/Admin/GridFieldCategorisationConfig.php @@ -16,7 +16,7 @@ class GridFieldCategorisationConfig extends GridFieldConfig_RecordEditor * @param string $parentMethod * @param string $childMethod */ - public function __construct($itemsPerPage = 15, $mergeRecords, $parentType, $parentMethod, $childMethod) + public function __construct($itemsPerPage, $mergeRecords, $parentType, $parentMethod, $childMethod) { parent::__construct($itemsPerPage); diff --git a/src/Admin/GridFieldMergeAction.php b/src/Admin/GridFieldMergeAction.php index d2c5fd5..fab3dc9 100644 --- a/src/Admin/GridFieldMergeAction.php +++ b/src/Admin/GridFieldMergeAction.php @@ -48,7 +48,7 @@ class GridFieldMergeAction implements GridField_ColumnProvider, GridField_Action * @param string $parentMethod * @param string $childMethod */ - public function __construct($records = [], $parentType, $parentMethod, $childMethod) + public function __construct($records, $parentType, $parentMethod, $childMethod) { $this->records = $records; $this->parentType = $parentType;