Merge "RecentChanges: Mark onRecentChangesPurgeRows() as void"

This commit is contained in:
jenkins-bot 2022-09-29 18:17:23 +00:00 committed by Gerrit Code Review
commit 4018457753
2 changed files with 4 additions and 4 deletions

View file

@ -3159,8 +3159,8 @@ class HookRunner implements
);
}
public function onRecentChangesPurgeRows( $rows ) {
return $this->container->run(
public function onRecentChangesPurgeRows( $rows ): void {
$this->container->run(
'RecentChangesPurgeRows',
[ $rows ]
);

View file

@ -17,7 +17,7 @@ interface RecentChangesPurgeRowsHook {
* @since 1.35
* @param \stdClass[] $rows Deleted rows as an array of recentchanges row objects (with up to
* $wgUpdateRowsPerQuery items)
* @return bool|void True or no return value to continue or false to abort
* @return void This hook must not abort, it must return no value
*/
public function onRecentChangesPurgeRows( $rows );
public function onRecentChangesPurgeRows( $rows ): void;
}