aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Storage/PageUpdater.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Storage/PageUpdater.php')
-rw-r--r--includes/Storage/PageUpdater.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/Storage/PageUpdater.php b/includes/Storage/PageUpdater.php
index 0ca376c3ba4f..4d5347833bce 100644
--- a/includes/Storage/PageUpdater.php
+++ b/includes/Storage/PageUpdater.php
@@ -1674,7 +1674,7 @@ class PageUpdater implements PageUpdateCauses {
RevisionRecord $newRevisionRecord,
CommentStoreComment $summary,
array $hints = []
- ) {
+ ): AtomicSectionUpdate {
return new AtomicSectionUpdate(
$dbw,
__METHOD__,
@@ -1716,14 +1716,14 @@ class PageUpdater implements PageUpdateCauses {
return $this->slotRoleRegistry->getAllowedRoles( $this->getPage() );
}
- private function ensureRoleAllowed( $role ) {
+ private function ensureRoleAllowed( string $role ) {
$allowedRoles = $this->getAllowedSlotRoles();
if ( !in_array( $role, $allowedRoles ) ) {
throw new PageUpdateException( "Slot role `$role` is not allowed." );
}
}
- private function ensureRoleNotRequired( $role ) {
+ private function ensureRoleNotRequired( string $role ) {
$requiredRoles = $this->getRequiredSlotRoles();
if ( in_array( $role, $requiredRoles ) ) {
throw new PageUpdateException( "Slot role `$role` is required." );