jenkins-bot has submitted this change and it was merged. Change subject: Log callers that trigger Title::newFromText $text type warning ......................................................................
Log callers that trigger Title::newFromText $text type warning Follows-up Ic85d27d79, Ibedc31659. See T76305. Change-Id: I8245744a9291d221f4e9302bb83db328a24f115f --- M includes/Title.php 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: MarkTraceur: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/Title.php b/includes/Title.php index 509fc27..601211d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -265,6 +265,7 @@ 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 ); } -- To view, visit https://gerrit.wikimedia.org/r/211654 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I8245744a9291d221f4e9302bb83db328a24f115f Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/core Gerrit-Branch: wmf/1.26wmf6 Gerrit-Owner: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: Alex Monk <kren...@gmail.com> Gerrit-Reviewer: MarkTraceur <mtrac...@member.fsf.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits