aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Hook
diff options
context:
space:
mode:
authorDaimona Eaytoy <daimona.wiki@gmail.com>2021-01-04 14:27:48 +0100
committerDaimona Eaytoy <daimona.wiki@gmail.com>2021-01-04 14:27:48 +0100
commit4ed494ef1898592fe1d4e6d35600f19754c62a65 (patch)
treea202f954cc34c59f7925701e8879a12deda11dcf /includes/Hook
parent0a4cd7c67170574c839676a4b173658361c9f20d (diff)
downloadmediawikicore-4ed494ef1898592fe1d4e6d35600f19754c62a65.tar.gz
mediawikicore-4ed494ef1898592fe1d4e6d35600f19754c62a65.zip
Add type hints to several hook interfaces
AbuseFilter has been using type hints on these methods for a while, so we can be pretty confident that the documented types reflect the real types. Change-Id: I7192be5843cbf26c22bae9dc4a838536469b90fd
Diffstat (limited to 'includes/Hook')
-rw-r--r--includes/Hook/EditFilterMergedContentHook.php4
-rw-r--r--includes/Hook/TitleMoveHook.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/includes/Hook/EditFilterMergedContentHook.php b/includes/Hook/EditFilterMergedContentHook.php
index 1ffc3b5be882..05ef100c0bb1 100644
--- a/includes/Hook/EditFilterMergedContentHook.php
+++ b/includes/Hook/EditFilterMergedContentHook.php
@@ -34,7 +34,7 @@ interface EditFilterMergedContentHook {
* Returning true if $status->isOK() returns false means "don't save but continue user
* interaction", e.g. show the edit form.
*/
- public function onEditFilterMergedContent( $context, $content, $status,
- $summary, $user, $minoredit
+ public function onEditFilterMergedContent( IContextSource $context, Content $content, Status $status,
+ $summary, User $user, $minoredit
);
}
diff --git a/includes/Hook/TitleMoveHook.php b/includes/Hook/TitleMoveHook.php
index f04f9006a0bd..cc4b64291600 100644
--- a/includes/Hook/TitleMoveHook.php
+++ b/includes/Hook/TitleMoveHook.php
@@ -27,5 +27,5 @@ interface TitleMoveHook {
* (i.e. call $status->fatal())
* @return bool|void True or no return value to continue or false to abort
*/
- public function onTitleMove( $old, $nt, $user, $reason, &$status );
+ public function onTitleMove( Title $old, Title $nt, User $user, $reason, Status &$status );
}