Completed
Push — master ( 0a3cfd...237071 )
by
unknown
07:05 queued 13s
created
repo/includes/Specials/SpecialSetAliases.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 	/**
121 121
 	 * Screams and throws an error if any of existing aliases has pipe character
122 122
 	 *
123
-	 * @param EntityDocument $entity
123
+	 * @param AliasesProvider $entity
124 124
 	 * @param string $languageCode
125 125
 	 *
126 126
 	 * @throws UserInputException
Please login to merge, or discard this patch.
repo/includes/Api/EntityTerms.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 
124 124
 	/**
125 125
 	 * @param Title[] $titles
126
-	 * @param int|null $continue
126
+	 * @param integer $continue
127 127
 	 *
128 128
 	 * @return array
129 129
 	 */
Please login to merge, or discard this patch.
repo/includes/Api/FormatSnakValue.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -120,6 +120,9 @@
 block discarded – undo
120 120
 		);
121 121
 	}
122 122
 
123
+	/**
124
+	 * @param string|null $dataTypeId
125
+	 */
123 126
 	private function formatValue( array $params, DataValue $value, ?string $dataTypeId ): string {
124 127
 		$snak = null;
125 128
 		if ( isset( $params['property'] ) ) {
Please login to merge, or discard this patch.
repo/includes/Api/ParseValue.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -236,6 +236,9 @@
 block discarded – undo
236 236
 		return new CompositeValidator( $validators, true );
237 237
 	}
238 238
 
239
+	/**
240
+	 * @param ValueValidator|null $validator
241
+	 */
239 242
 	private function parseStringValue( ValueParser $parser, string $value, ?ValueValidator $validator ): array {
240 243
 		$result = [
241 244
 			'raw' => $value
Please login to merge, or discard this patch.
repo/includes/WikibaseRepo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1218,7 +1218,7 @@
 block discarded – undo
1218 1218
 	}
1219 1219
 
1220 1220
 	/**
1221
-	 * @return TermBuffer|AliasTermBuffer
1221
+	 * @return null|TermBuffer
1222 1222
 	 */
1223 1223
 	public function getTermBuffer() {
1224 1224
 		return $this->getPrefetchingTermLookup();
Please login to merge, or discard this patch.
repo/includes/Api/EditEntity.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -419,6 +419,9 @@  discard block
 block discarded – undo
419 419
 		}
420 420
 	}
421 421
 
422
+	/**
423
+	 * @param Title|null $title
424
+	 */
422 425
 	private function checkPageIdProp( array $data, ?Title $title ): void {
423 426
 		if ( isset( $data['pageid'] )
424 427
 			&& ( $title === null || $title->getArticleID() !== $data['pageid'] )
@@ -430,6 +433,9 @@  discard block
 block discarded – undo
430 433
 		}
431 434
 	}
432 435
 
436
+	/**
437
+	 * @param Title|null $title
438
+	 */
433 439
 	private function checkNamespaceProp( array $data, ?Title $title ): void {
434 440
 		// not completely convinced that we can use title to get the namespace in this case
435 441
 		if ( isset( $data['ns'] )
@@ -442,6 +448,9 @@  discard block
 block discarded – undo
442 448
 		}
443 449
 	}
444 450
 
451
+	/**
452
+	 * @param Title|null $title
453
+	 */
445 454
 	private function checkTitleProp( array $data, ?Title $title ): void {
446 455
 		if ( isset( $data['title'] )
447 456
 			&& ( $title === null || $title->getPrefixedText() !== $data['title'] )
@@ -464,6 +473,9 @@  discard block
 block discarded – undo
464 473
 		}
465 474
 	}
466 475
 
476
+	/**
477
+	 * @param null|EntityId $entityId
478
+	 */
467 479
 	private function checkEntityId( array $data, ?EntityId $entityId ): void {
468 480
 		if ( isset( $data['id'] ) ) {
469 481
 			if ( !$entityId ) {
Please login to merge, or discard this patch.
repo/includes/Api/ResultBuilder.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -627,7 +627,7 @@  discard block
 block discarded – undo
627 627
 	 * Get serialized information for the EntityId and add them to result
628 628
 	 *
629 629
 	 * @param EntityId $entityId
630
-	 * @param string|array|null $path
630
+	 * @param string $path
631 631
 	 */
632 632
 	public function addBasicEntityInformation( EntityId $entityId, $path ) {
633 633
 		$this->setValue( $path, 'id', $entityId->getSerialization() );
@@ -1092,7 +1092,7 @@  discard block
 block discarded – undo
1092 1092
 	 * @see ApiResult::addValue()
1093 1093
 	 *
1094 1094
 	 * @param Status $status The status to get the revision ID from.
1095
-	 * @param string|null|array $path Where in the result to put the revision id
1095
+	 * @param string $path Where in the result to put the revision id
1096 1096
 	 * @param int|null $oldRevId The id of the latest revision of the entity before
1097 1097
 	 *        the last (possibly null) edit
1098 1098
 	 */
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Api/RemoveQualifiersTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -156,6 +156,9 @@
 block discarded – undo
156 156
 		$this->makeInvalidRequest( $statementGuid, $hashes, 'no-such-qualifier' );
157 157
 	}
158 158
 
159
+	/**
160
+	 * @param string $expectedError
161
+	 */
159 162
 	protected function makeInvalidRequest( string $statementGuid, array $hashes, ?string $expectedError ) {
160 163
 		$params = [
161 164
 			'action' => 'wbremovequalifiers',
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Api/SetQualifierTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@
 block discarded – undo
180 180
 		$this->makeSetQualifierRequest( $guid, $hash, $newQualifier, $item->getId() );
181 181
 	}
182 182
 
183
+	/**
184
+	 * @param null|string $snakhash
185
+	 */
183 186
 	protected function makeSetQualifierRequest( string $statementGuid, ?string $snakhash, Snak $qualifier, EntityId $entityId ): void {
184 187
 		$params = [
185 188
 			'action' => 'wbsetqualifier',
Please login to merge, or discard this patch.