From: Robert Leverington Date: Wed, 6 Feb 2008 20:06:47 +0000 (+0000) Subject: Alter constructor of Article object to no longer pass-by-reference, and instead use... X-Git-Tag: 1.31.0-rc.0~49576 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=5321786c83894063a8189f19a2331662a87342b9;p=lhc%2Fweb%2Fwiklou.git Alter constructor of Article object to no longer pass-by-reference, and instead use type hinting. This allows Title objects to be passed to the Article object as a construction parameter without first placing them in a variable, thus avoiding E_STRICT level errors. --- diff --git a/includes/Article.php b/includes/Article.php index 7197a32f97..3f17c01e4c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -41,7 +41,7 @@ class Article { * @param $title Reference to a Title object. * @param $oldId Integer revision ID, null to fetch from request, zero for current */ - function __construct( &$title, $oldId = null ) { + function __construct( Title $title, $oldId = null ) { $this->mTitle =& $title; $this->mOldId = $oldId; $this->clear();