Skip to content

Commit

Permalink
API Explicity mark nullable paramters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent a114fd2 commit 704046f
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 704046f

Please sign in to comment.