wiki.techinc.nl/includes/Hook/MovePageCheckPermissionsHook.php
Umherirrender d7248d63fb Fix various documentation related to null types (part II)
The functions returning null or the class property is set explict null.
Some function should not accept null or return null.

Found by phan strict checks

Change-Id: Ie50f23249282cdb18caa332f562a3945a58d86ff
2022-03-08 23:45:31 +00:00

32 lines
858 B
PHP

<?php
namespace MediaWiki\Hook;
use Status;
use Title;
use User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "MovePageCheckPermissions" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface MovePageCheckPermissionsHook {
/**
* Use this hook to specify whether the user is allowed to move the page.
*
* @since 1.35
*
* @param Title $oldTitle Current (old) location
* @param Title $newTitle New location
* @param User $user User making the move
* @param string|null $reason Reason provided by the user
* @param Status $status Status object to pass error messages to
* @return bool|void True or no return value to continue or false to abort
*/
public function onMovePageCheckPermissions( $oldTitle, $newTitle, $user,
$reason, $status
);
}