Jeroen De Dauw has uploaded a new change for review.
https://gerrit.wikimedia.org/r/74635
Change subject: Fix instantiation issue in DataValueFactory and add deprecation
notice
......................................................................
Fix instantiation issue in DataValueFactory and add deprecation notice
Change-Id: I4441adc0bed77a892f7f3ff1de9c5c1a0afc92bd
---
M DataValues/includes/DataValueFactory.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DataValues
refs/changes/35/74635/1
diff --git a/DataValues/includes/DataValueFactory.php
b/DataValues/includes/DataValueFactory.php
index e2ace8d..5ef01aa 100644
--- a/DataValues/includes/DataValueFactory.php
+++ b/DataValues/includes/DataValueFactory.php
@@ -41,10 +41,11 @@
*
* @var string[]
*/
- protected $values;
+ protected $values = array();
/**
* Singleton.
+ * @deprecated Create your own instance rather then relying on global
state
*
* @since 0.1
*
--
To view, visit https://gerrit.wikimedia.org/r/74635
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4441adc0bed77a892f7f3ff1de9c5c1a0afc92bd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DataValues
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits