Skip to content

Commit

Permalink
Update REvertPage.php for PHP8.2
Browse files Browse the repository at this point in the history
Make function signature compatible with base class for PHP8.2
  • Loading branch information
TDannhauer committed Apr 10, 2023
1 parent d7f29a9 commit abf5fd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Page/RevertPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ public function __construct($referrer)
/**
* 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 abf5fd1

Please sign in to comment.