From aeea6c552032ceb7ee3b21a17556d90bb5764cdd Mon Sep 17 00:00:00 2001 From: Reedy Date: Thu, 6 Jun 2019 16:14:58 +0100 Subject: [PATCH 1/1] Add some @since tags to HeaderCallback Change-Id: I28053418d107f4a101aa7d8a2203c6864acd311f --- includes/HeaderCallback.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/HeaderCallback.php b/includes/HeaderCallback.php index 650a3a8463..30cc7f9fd4 100644 --- a/includes/HeaderCallback.php +++ b/includes/HeaderCallback.php @@ -2,6 +2,9 @@ namespace MediaWiki; +/** + * @since 1.29 + */ class HeaderCallback { private static $headersSentException; private static $messageSent = false; @@ -10,6 +13,8 @@ class HeaderCallback { * Register a callback to be called when headers are sent. There can only * be one of these handlers active, so all relevant actions have to be in * here. + * + * @since 1.29 */ public static function register() { header_register_callback( [ __CLASS__, 'callback' ] ); @@ -17,6 +22,8 @@ class HeaderCallback { /** * The callback, which is called by the transport + * + * @since 1.29 */ public static function callback() { // Prevent caching of responses with cookies (T127993) @@ -57,6 +64,8 @@ class HeaderCallback { /** * Log a warning message if headers have already been sent. This can be * called before flushing the output. + * + * @since 1.29 */ public static function warnIfHeadersSent() { if ( headers_sent() && !self::$messageSent ) { -- 2.20.1