From: Alex Monk Date: Sun, 17 May 2015 15:51:24 +0000 (+0100) Subject: Log callers that trigger Title::newFromText $text type warning X-Git-Tag: 1.31.0-rc.0~11384^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=448c7ea03a;p=lhc%2Fweb%2Fwiklou.git Log callers that trigger Title::newFromText $text type warning Follows-up Ic85d27d79, Ibedc31659. See T76305. Change-Id: I8245744a9291d221f4e9302bb83db328a24f115f --- diff --git a/includes/Title.php b/includes/Title.php index 509fc27d69..601211d1b1 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -265,6 +265,7 @@ class Title { if ( is_object( $text ) ) { throw new InvalidArgumentException( '$text must be a string.' ); } elseif ( !is_string( $text ) ) { + wfDebugLog( 'T76305', wfGetAllCallers( 5 ) ); wfWarn( __METHOD__ . ': $text must be a string. This will throw an InvalidArgumentException in future.', 2 ); }