aboutsummaryrefslogtreecommitdiffstats
path: root/includes/FauxRequest.php
diff options
context:
space:
mode:
authordaniel <dkinzler@wikimedia.org>2020-06-26 14:56:03 +0200
committerdaniel <dkinzler@wikimedia.org>2020-07-07 15:38:57 +0200
commitbd5c3d06a276e5f227cafa094a821079086ab297 (patch)
tree0664c4090a8a59dc02b0b543b9dbfdfc26bc5b2c /includes/FauxRequest.php
parent804abf07f36bf7397fd56dbc5a9ba5837ce48dfc (diff)
downloadmediawikicore-bd5c3d06a276e5f227cafa094a821079086ab297.tar.gz
mediawikicore-bd5c3d06a276e5f227cafa094a821079086ab297.zip
Annotate newable classes
This annotates classes that can safely be instantiated by extensions, per the Stable Interface Policy. Bug: T247862 Change-Id: Ia280f559874fc0750265ddeb7f831e65fd7d7d6a
Diffstat (limited to 'includes/FauxRequest.php')
-rw-r--r--includes/FauxRequest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/FauxRequest.php b/includes/FauxRequest.php
index 7ae0c234d117..4b5349e9e036 100644
--- a/includes/FauxRequest.php
+++ b/includes/FauxRequest.php
@@ -28,6 +28,8 @@ use MediaWiki\Session\SessionManager;
/**
* WebRequest clone which takes values from a provided array.
*
+ * @newable
+ *
* @ingroup HTTP
*/
class FauxRequest extends WebRequest {
@@ -36,6 +38,8 @@ class FauxRequest extends WebRequest {
protected $cookies = [];
/**
+ * @stable for calling
+ *
* @param array $data Array of *non*-urlencoded key => value pairs, the
* fake GET/POST values
* @param bool $wasPosted Whether to treat the data as POST