From c6387060d805b17d6a6fdba7a8eed447f834d259 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thiemo=20M=C3=A4ttig?= Date: Thu, 8 Feb 2018 15:10:23 +0100 Subject: [PATCH] Fix some broken @var comments and add missing uses Change-Id: I2091f4107b6c23d9c3b698999147ce3a2ec38b66 --- includes/auth/AuthManagerAuthPlugin.php | 3 ++- tests/phpunit/includes/auth/AuthManagerTest.php | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/auth/AuthManagerAuthPlugin.php b/includes/auth/AuthManagerAuthPlugin.php index 9a1e44547c..4f84b4c67d 100644 --- a/includes/auth/AuthManagerAuthPlugin.php +++ b/includes/auth/AuthManagerAuthPlugin.php @@ -20,6 +20,7 @@ namespace MediaWiki\Auth; +use Psr\Log\LoggerInterface; use User; /** @@ -31,7 +32,7 @@ class AuthManagerAuthPlugin extends \AuthPlugin { /** @var string|null */ protected $domain = null; - /** @var \\Psr\\Log\\LoggerInterface */ + /** @var LoggerInterface */ protected $logger = null; public function __construct() { diff --git a/tests/phpunit/includes/auth/AuthManagerTest.php b/tests/phpunit/includes/auth/AuthManagerTest.php index b8f7b733b6..e4056ee712 100644 --- a/tests/phpunit/includes/auth/AuthManagerTest.php +++ b/tests/phpunit/includes/auth/AuthManagerTest.php @@ -2,10 +2,13 @@ namespace MediaWiki\Auth; +use Config; use MediaWiki\Session\SessionInfo; use MediaWiki\Session\UserInfo; +use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; use StatusValue; +use WebRequest; use Wikimedia\ScopedCallback; use Wikimedia\TestingAccessWrapper; @@ -19,7 +22,7 @@ class AuthManagerTest extends \MediaWikiTestCase { protected $request; /** @var Config */ protected $config; - /** @var \\Psr\\Log\\LoggerInterface */ + /** @var LoggerInterface */ protected $logger; protected $preauthMocks = []; -- 2.20.1