From e5ec6ee9073b20f3f1bce134a7df86b02939c2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 15 Nov 2024 00:24:17 +0100 Subject: [PATCH] Fix Phan error related to message parameters Caused by type hints added in MediaWiki core in I3e0df790ff9db2fa630f82408a7254a359fe61ca. Change-Id: Ica40a9db2f9fde7c989fbdb1680b526c144dd73c --- includes/View/AbuseFilterViewEdit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/View/AbuseFilterViewEdit.php b/includes/View/AbuseFilterViewEdit.php index a142e44f6..f8f6d3f97 100644 --- a/includes/View/AbuseFilterViewEdit.php +++ b/includes/View/AbuseFilterViewEdit.php @@ -329,7 +329,7 @@ class AbuseFilterViewEdit extends AbuseFilterView { $oldWarningMessage = $readOnly ? 'abusefilter-edit-oldwarning-view' : 'abusefilter-edit-oldwarning'; - $out->addWikiMsg( $oldWarningMessage, $history_id, $filter ); + $out->addWikiMsg( $oldWarningMessage, $history_id, (string)$filter ); } if ( $error !== null ) {