From 7fa1aa7364a9f89669a457fd098a0cc51954529d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 7 Feb 2013 12:46:02 -0800 Subject: [PATCH] Made Page an interface, since it is only there to pass type checks. Change-Id: Ifc2b754027c02bd2907010a47f125bb9544bb609 --- includes/Article.php | 2 +- includes/WikiPage.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 75008cefcd..2b7e9a508b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -33,7 +33,7 @@ * * @internal documentation reviewed 15 Mar 2010 */ -class Article extends Page { +class Article implements Page { /**@{{ * @private */ diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 57007eb7c3..604829415b 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -23,7 +23,7 @@ /** * Abstract class for type hinting (accepts WikiPage, Article, ImagePage, CategoryPage) */ -abstract class Page {} +interface Page {} /** * Class representing a MediaWiki article and history. @@ -33,7 +33,7 @@ abstract class Page {} * * @internal documentation reviewed 15 Mar 2010 */ -class WikiPage extends Page implements IDBAccessObject { +class WikiPage implements Page, IDBAccessObject { // Constants for $mDataLoadedFrom and related /** -- 2.20.1