Lucas Werkmeister (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/366834 )

Change subject: Default constraint parameters to []
......................................................................

Default constraint parameters to []

I don’t know why $constraintParameters would ever be null here, but it
seems to happen, so for now default to empty parameters in that case.

Bug: T171295
Change-Id: I2002e3aa727fd0d0dfba0c74c4847107a47c3735
---
M includes/ConstraintRepository.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints
 refs/changes/34/366834/1

diff --git a/includes/ConstraintRepository.php 
b/includes/ConstraintRepository.php
index 29fbd93..3e65e88 100644
--- a/includes/ConstraintRepository.php
+++ b/includes/ConstraintRepository.php
@@ -141,7 +141,7 @@
                                $result->constraint_guid,
                                PropertyId::newFromNumber( $result->pid ),
                                $constraintTypeItemId,
-                               $constraintParameters
+                               $constraintParameters || []
                        );
                }
                return $constraints;

-- 
To view, visit https://gerrit.wikimedia.org/r/366834
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2002e3aa727fd0d0dfba0c74c4847107a47c3735
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to