Permissions: Declare the $nsInfo property and document it in constructor
authorDerick Alangi <alangiderick@gmail.com>
Sun, 5 May 2019 15:43:42 +0000 (16:43 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Sun, 5 May 2019 16:21:39 +0000 (17:21 +0100)
Was added in commit 1f7ab9c but was never documented nor declared before its
usage.

Change-Id: Iea833f9ffb6ac210251912d35cdebf9bb064d610

includes/Permissions/PermissionManager.php

index 549b7ba..e443803 100644 (file)
@@ -66,12 +66,16 @@ class PermissionManager {
        /** @var bool If set to true, blocked users will no longer be allowed to log in */
        private $blockDisablesLogin;
 
+       /** @var NamespaceInfo */
+       private $nsInfo;
+
        /**
         * @param SpecialPageFactory $specialPageFactory
         * @param string[] $whitelistRead
         * @param string[] $whitelistReadRegexp
         * @param bool $emailConfirmToEdit
         * @param bool $blockDisablesLogin
+        * @param NamespaceInfo $nsInfo
         */
        public function __construct(
                SpecialPageFactory $specialPageFactory,