From: Aaron Schulz Date: Thu, 7 Feb 2013 20:46:02 +0000 (-0800) Subject: Made Page an interface, since it is only there to pass type checks. X-Git-Tag: 1.31.0-rc.0~20765^2 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=7fa1aa7364a9f89669a457fd098a0cc51954529d;p=lhc%2Fweb%2Fwiklou.git Made Page an interface, since it is only there to pass type checks. Change-Id: Ifc2b754027c02bd2907010a47f125bb9544bb609 --- 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 /**