X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdebug%2Flogger%2FLegacyLogger.php;h=4614c46b6d27af03b4d6e4f2427005862481aaff;hb=64b83bdb3afd0ee4f8fc1893a865409c198e601e;hp=4d7c84d5c64f90defe9f285e8f526947cd1beb2b;hpb=53779578b44575ef91feb3fad488f09b52f737d7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/debug/logger/LegacyLogger.php b/includes/debug/logger/LegacyLogger.php index 4d7c84d5c6..6359509088 100644 --- a/includes/debug/logger/LegacyLogger.php +++ b/includes/debug/logger/LegacyLogger.php @@ -43,8 +43,7 @@ use UDPTransport; * * @see \MediaWiki\Logger\LoggerFactory * @since 1.25 - * @author Bryan Davis - * @copyright © 2014 Bryan Davis and Wikimedia Foundation. + * @copyright © 2014 Wikimedia Foundation and contributors */ class LegacyLogger extends AbstractLogger { @@ -327,7 +326,7 @@ class LegacyLogger extends AbstractLogger { * @param string $channel * @param string $message * @param array $context - * @return null + * @return string */ protected static function formatAsWfDebugLog( $channel, $message, $context ) { $time = wfTimestamp( TS_DB ); @@ -378,7 +377,7 @@ class LegacyLogger extends AbstractLogger { if ( is_nan( $item ) ) { return 'NaN'; } - return $item; + return (string)$item; } if ( is_scalar( $item ) ) {