Skip to content

Commit

Permalink
Update MergeOrRename.php for PHP8.2
Browse files Browse the repository at this point in the history
Make function signature compatible to base class
  • Loading branch information
TDannhauer committed Apr 10, 2023
1 parent e75c171 commit 2f2c968
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Page/MergeOrRename.php
Expand Up @@ -79,9 +79,11 @@ public function allows($mode)
/**
* Retrieve this user's permissions for the referring page.
*
* @param string $pageName The page name (unused in this method).
*
* @return integer The permissions bitmask.
*/
public function getPermissions()
public function getPermissions($pageName = null)
{
return parent::getPermissions($this->referrer());
}
Expand Down

0 comments on commit 2f2c968

Please sign in to comment.