diff options
author | thiemowmde <thiemo.kreuz@wikimedia.de> | 2025-04-04 11:48:29 +0200 |
---|---|---|
committer | thiemowmde <thiemo.kreuz@wikimedia.de> | 2025-04-04 11:51:26 +0200 |
commit | a0c4d4fec8b1d8ad0fc7be3f7151b02d4f31130b (patch) | |
tree | 94036b7ec4bf244e7d5b8c8ae379f241e76d4c2e | |
parent | b696f19d3e85cf57c1b8475b571cb024c00588fd (diff) | |
download | mediawikicore-a0c4d4fec8b1d8ad0fc7be3f7151b02d4f31130b.tar.gz mediawikicore-a0c4d4fec8b1d8ad0fc7be3f7151b02d4f31130b.zip |
Add @since tags to all ParserOptions::newFrom… methods
I found this relevant in the context of OutputPage::parserOptions()
being deprecated. Is the replacement safe to be used even in old
versions? Yes, it is.
Bug: T350626
Change-Id: Id67c9df8f149d247fb6a3e0a113095eed3e727b1
-rw-r--r-- | includes/parser/ParserOptions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index e364bf0ae2b0..971442f2c486 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -1099,6 +1099,7 @@ class ParserOptions { * Get a ParserOptions object from a given user. * Language will be taken from $wgLang. * + * @since 1.13 * @param UserIdentity $user * @return ParserOptions */ @@ -1109,6 +1110,7 @@ class ParserOptions { /** * Get a ParserOptions object from a given user and language * + * @since 1.19 * @param UserIdentity $user * @param Language $lang * @return ParserOptions @@ -1120,6 +1122,7 @@ class ParserOptions { /** * Get a ParserOptions object from a IContextSource object * + * @since 1.19 * @param IContextSource $context * @return ParserOptions */ |