From 12169b5f23bdab6e5454690f5b315d5cea05f0cd Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 28 Nov 2024 14:04:36 +1300 Subject: [PATCH] API Explicity mark nullable parameters for PHP 8.4 --- code/SiteConfigPagePermissions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/SiteConfigPagePermissions.php b/code/SiteConfigPagePermissions.php index 9450ed3ee..ffd13e918 100644 --- a/code/SiteConfigPagePermissions.php +++ b/code/SiteConfigPagePermissions.php @@ -16,7 +16,7 @@ class SiteConfigPagePermissions implements DefaultPermissionChecker * @param Member $member * @return bool */ - public function canEdit(Member $member = null) + public function canEdit(?Member $member = null) { return SiteConfig::current_site_config()->canEditPages($member); } @@ -27,7 +27,7 @@ public function canEdit(Member $member = null) * @param Member $member * @return bool */ - public function canView(Member $member = null) + public function canView(?Member $member = null) { return SiteConfig::current_site_config()->canViewPages($member); } @@ -38,7 +38,7 @@ public function canView(Member $member = null) * @param Member $member * @return bool */ - public function canDelete(Member $member = null) + public function canDelete(?Member $member = null) { // Same as canEdit return $this->canEdit($member); @@ -50,7 +50,7 @@ public function canDelete(Member $member = null) * @param Member $member * @return bool */ - public function canCreate(Member $member = null) + public function canCreate(?Member $member = null) { return SiteConfig::current_site_config()->canCreateTopLevel(); }