aboutsummaryrefslogtreecommitdiffstats
path: root/includes/content
diff options
context:
space:
mode:
authorMark A. Hershberger <mah@nichework.com>2022-06-28 18:54:06 -0400
committerMark A. Hershberger <mah@nichework.com>2022-07-09 18:58:19 -0400
commit2e07010654d2e29a0c7135dd9658ca60ea788734 (patch)
tree8e74c7d852b011df4fbbd3adb25bb0be6b5ef46e /includes/content
parent3f63e3d8f0b877cb988e8a030a2d1aece7e1a9be (diff)
downloadmediawikicore-2e07010654d2e29a0c7135dd9658ca60ea788734.tar.gz
mediawikicore-2e07010654d2e29a0c7135dd9658ca60ea788734.zip
ManualLogEntry::getComment() should always return string
So, typehint setComment and then fix tests so they always pass a summary. This also introduces an api change. Bug: T311567 Change-Id: I478e62b6753d6009017ab0acc295e6cee7d3b017
Diffstat (limited to 'includes/content')
-rw-r--r--includes/content/ContentModelChange.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/content/ContentModelChange.php b/includes/content/ContentModelChange.php
index 4855ded28608..f5d48024aec1 100644
--- a/includes/content/ContentModelChange.php
+++ b/includes/content/ContentModelChange.php
@@ -250,7 +250,7 @@ class ContentModelChange {
*/
public function doContentModelChange(
IContextSource $context,
- $comment,
+ string $comment,
$bot
) {
$status = $this->createNewContent();