diff --git a/src/Forms/GridFieldSiteTreeAddNewButton.php b/src/Forms/GridFieldSiteTreeAddNewButton.php index 7007f38..f54e97f 100644 --- a/src/Forms/GridFieldSiteTreeAddNewButton.php +++ b/src/Forms/GridFieldSiteTreeAddNewButton.php @@ -36,7 +36,7 @@ class GridFieldSiteTreeAddNewButton extends GridFieldAddNewButton implements Gri * @param SiteTree $parent * @return boolean */ - public function getAllowedChildren(SiteTree $parent = null) + public function getAllowedChildren(?SiteTree $parent = null) { if (!$parent || !$parent->canAddChildren()) { return array();