aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Setup.php
diff options
context:
space:
mode:
authorAmir Sarabadani <ladsgroup@gmail.com>2023-09-07 13:46:15 +0200
committerJames D. Forrester <jforrester@wikimedia.org>2023-09-11 21:44:34 +0100
commit5bd33d46efe9e7fd49194dcf4263ab1f23bf130c (patch)
tree277d3f280663702b6a32e2d4e7e2ed00183fd926 /includes/Setup.php
parent2f2802eb75266605df7b2e664be3c4efea9363f9 (diff)
downloadmediawikicore-5bd33d46efe9e7fd49194dcf4263ab1f23bf130c.tar.gz
mediawikicore-5bd33d46efe9e7fd49194dcf4263ab1f23bf130c.zip
Reorg: Move WebRequest to includes\Request
This has been approved as part of RFC T166010 Bug: T321882 Change-Id: I6bbdbbe6ea48cc1f50bc568bb8780fc7c5361a6f
Diffstat (limited to 'includes/Setup.php')
-rw-r--r--includes/Setup.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/Setup.php b/includes/Setup.php
index 974a24a9d004..baefb47973b9 100644
--- a/includes/Setup.php
+++ b/includes/Setup.php
@@ -426,6 +426,8 @@ if ( $wgRequest->getCookie( 'UseDC', '' ) === 'master' ) {
// Useful debug output
( static function () {
global $wgCommandLineMode, $wgRequest;
+ '@phan-var \MediaWiki\Request\WebRequest $wgRequest';
+
$logger = LoggerFactory::getInstance( 'wfDebug' );
if ( $wgCommandLineMode ) {
$self = $_SERVER['PHP_SELF'] ?? '';