From c1f342c675822509429aa02057c2950af1d0db3c Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 9 Sep 2017 20:35:44 -0700 Subject: [PATCH] WikiPage: Hard deprecate second arg of prepareContentForEdit() as an int This was documented as deprecated in ba2b22421526. Change-Id: I728cc0ea0b431138a8edb4d815c53f48e83d7143 --- includes/page/WikiPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index 312edbd25e..7f923f88a5 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -1989,6 +1989,7 @@ class WikiPage implements Page, IDBAccessObject { // This code path is deprecated, and nothing is known to // use it, so performance here shouldn't be a worry. if ( $revid !== null ) { + wfDeprecated( __METHOD__ . ' with $revision = revision ID', '1.25' ); $revision = Revision::newFromId( $revid, Revision::READ_LATEST ); } else { $revision = null; -- 2.20.1