Log callers that trigger Title::newFromText $text type warning
authorAlex Monk <krenair@gmail.com>
Sun, 17 May 2015 15:51:24 +0000 (16:51 +0100)
committerKrinkle <krinklemail@gmail.com>
Sun, 17 May 2015 22:25:21 +0000 (22:25 +0000)
Follows-up Ic85d27d79, Ibedc31659. See T76305.

Change-Id: I8245744a9291d221f4e9302bb83db328a24f115f

includes/Title.php

index 509fc27..601211d 100644 (file)
@@ -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 );
                }