Skip to content

Commit

Permalink
Merge pull request #178 from creative-commoners/pulls/4/php84
Browse files Browse the repository at this point in the history
API Explicity mark nullable parameters for PHP 8.4
  • Loading branch information
GuySartorelli authored Dec 2, 2024
2 parents a114fd2 + 33de3b5 commit 52f2b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/GridFieldSiteTreeAddNewButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 52f2b69

Please sign in to comment.