Skip to content

Commit

Permalink
API Explicity mark nullable parameters 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 9c3f0e1 commit 12169b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/SiteConfigPagePermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
Expand All @@ -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();
}
Expand Down

0 comments on commit 12169b5

Please sign in to comment.