From 5321786c83894063a8189f19a2331662a87342b9 Mon Sep 17 00:00:00 2001 From: Robert Leverington Date: Wed, 6 Feb 2008 20:06:47 +0000 Subject: [PATCH] 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. --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1