diff --git a/includes/ConfigNames.php b/includes/ConfigNames.php index 48370c99d5..3a3d97e8b2 100644 --- a/includes/ConfigNames.php +++ b/includes/ConfigNames.php @@ -1,5 +1,7 @@ userFactory->newFromId( $row->cw_comment_user ); + $user = $this->userFactory->newFromId( (int)$row->cw_comment_user ); $comments[] = [ 'comment' => $row->cw_comment, @@ -324,7 +326,7 @@ public function getRequestHistory(): array { continue; } - $user = $this->userFactory->newFromActorId( $row->cw_history_actor ); + $user = $this->userFactory->newFromActorId( (int)$row->cw_history_actor ); $history[] = [ 'action' => $row->cw_history_action, @@ -693,11 +695,11 @@ public function getDBname(): string { } public function getVisibility(): int { - return $this->getRowObject()->cw_visibility; + return (int)$this->getRowObject()->cw_visibility; } public function getRequester(): User { - return $this->userFactory->newFromId( $this->getRowObject()->cw_user ); + return $this->userFactory->newFromId( (int)$this->getRowObject()->cw_user ); } public function getStatus(): string { diff --git a/includes/Services/WikiRequestViewer.php b/includes/Services/WikiRequestViewer.php index 7948d4f645..a868db4b56 100644 --- a/includes/Services/WikiRequestViewer.php +++ b/includes/Services/WikiRequestViewer.php @@ -1,5 +1,7 @@