From 33de3b5e0f2f40f60603a2627e48049bd4aacaa7 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 28 Nov 2024 14:03:25 +1300 Subject: [PATCH] API Explicity mark nullable paramters for PHP 8.4 --- src/Forms/GridFieldSiteTreeAddNewButton.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();