Thiemo Mättig (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/290654

Change subject: Remove comment about solved EntityId vs. EntityIdValue problem
......................................................................

Remove comment about solved EntityId vs. EntityIdValue problem

This outdated comment should have been removed in
I8fba1e700fe435c96618c2ab75e3bebe5363561e three years ago. ;-)

Change-Id: I5bdd7b102a2fc7e066b0f648203a54ed2df24cca
---
M repo/includes/ValidatorBuilders.php
1 file changed, 4 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/54/290654/1

diff --git a/repo/includes/ValidatorBuilders.php 
b/repo/includes/ValidatorBuilders.php
index 2282927..dfd8f79 100644
--- a/repo/includes/ValidatorBuilders.php
+++ b/repo/includes/ValidatorBuilders.php
@@ -132,13 +132,10 @@
         * @return ValueValidator[]
         */
        private function getEntityValidators( $entityType = null ) {
-               $validators = array();
-
-               //NOTE: The DataValue in question is going to be an instance of 
EntityId!
-               $validators[] = new TypeValidator( EntityIdValue::class );
-               $validators[] = new EntityExistsValidator( $this->entityLookup, 
$entityType );
-
-               return $validators;
+               return [
+                       new TypeValidator( EntityIdValue::class ),
+                       new EntityExistsValidator( $this->entityLookup, 
$entityType ),
+               ];
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5bdd7b102a2fc7e066b0f648203a54ed2df24cca
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>

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

Reply via email to