aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Category
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2024-09-14 10:12:18 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2024-09-14 10:12:18 +0200
commit6eec17e9a96712d401126821ad8633cb18d9dd03 (patch)
treef5b5f86f55630c3cb6bd2ba553dc4011208b4a05 /includes/Category
parentbcd8cd29f633ac019ba976881dc119ec0e0ccb82 (diff)
downloadmediawikicore-6eec17e9a96712d401126821ad8633cb18d9dd03.tar.gz
mediawikicore-6eec17e9a96712d401126821ad8633cb18d9dd03.zip
Add missing documentation to class properties (miscellaneous classes)
Add doc-typehints to class properties found by the PropertyDocumentation sniff to improve the documentation. Once the sniff is enabled it avoids that new code is missing type declarations. This is focused on documentation and does not change code. Change-Id: I1da4b272a6b28c419cc8e860d142dae19ca0bbcf
Diffstat (limited to 'includes/Category')
-rw-r--r--includes/Category/Category.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/Category/Category.php b/includes/Category/Category.php
index b8041ec8ac9d..19a1915e1bd4 100644
--- a/includes/Category/Category.php
+++ b/includes/Category/Category.php
@@ -40,8 +40,9 @@ use Wikimedia\Rdbms\ReadOnlyMode;
* Member variables are lazy-initialized.
*/
class Category {
- /** Name of the category, normalized to DB-key form */
+ /** @var string|null Name of the category, normalized to DB-key form */
private $mName = null;
+ /** @var int|null|false */
private $mID = null;
/**
* Category page title