Log callers that trigger Title::newFromText $text type warning
Follows-up Ic85d27d79, Ibedc31659. See T76305. Change-Id: I8245744a9291d221f4e9302bb83db328a24f115f
This commit is contained in:
parent
b853854389
commit
448c7ea03a
1 changed files with 1 additions and 0 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue