Completed
Pull Request — master (#12)
by
unknown
11:14 queued 04:45
created
repo/tests/phpunit/includes/RepoHooksTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -635,6 +635,9 @@
 block discarded – undo
635 635
 		$this->assertTrue( $canBeMoved );
636 636
 	}
637 637
 
638
+	/**
639
+	 * @param integer $propertyNamespace
640
+	 */
638 641
 	private function newEntitySourceBasedFederationSettings( $itemNamespace, $propertyNamespace ) {
639 642
 		global $wgWBRepoSettings;
640 643
 
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Store/ItemTermsRebuilderTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -173,6 +173,9 @@
 block discarded – undo
173 173
 		$this->assertLastMessageContains( 'Q4' );
174 174
 	}
175 175
 
176
+	/**
177
+	 * @param string $expectedString
178
+	 */
176 179
 	private function assertLastMessageContains( $expectedString ) {
177 180
 		$messages = $this->progressReporter->getMessages();
178 181
 
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Store/Sql/WikiPageEntityMetaDataLookupTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -87,6 +87,7 @@  discard block
 block discarded – undo
87 87
 	}
88 88
 
89 89
 	/**
90
+	 * @param EntityNamespaceLookup $nsLookup
90 91
 	 * @return WikiPageEntityMetaDataLookup
91 92
 	 */
92 93
 	private function getWikiPageEntityMetaDataLookup( $nsLookup = null ) {
@@ -106,6 +107,9 @@  discard block
 block discarded – undo
106 107
 		);
107 108
 	}
108 109
 
110
+	/**
111
+	 * @param EntityNamespaceLookup $namespaceLookup
112
+	 */
109 113
 	private function newMetaDataLookupForSourceBasedFederation( $namespaceLookup = null ) {
110 114
 		if ( $namespaceLookup === null ) {
111 115
 			$namespaceLookup = $this->getEntityNamespaceLookup();
@@ -182,6 +186,11 @@  discard block
 block discarded – undo
182 186
 		return $lookup;
183 187
 	}
184 188
 
189
+	/**
190
+	 * @param integer $selectCount
191
+	 * @param integer $selectRowCount
192
+	 * @param integer $getConnectionCount
193
+	 */
185 194
 	private function newLookupWithLaggedConnectionForSourceBasedFederation( $selectCount, $selectRowCount, $getConnectionCount ) {
186 195
 		$nsLookup = $this->getEntityNamespaceLookup();
187 196
 		$lookup = $this->getMockBuilder( WikiPageEntityMetaDataLookup::class )
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Store/WikiPageEntityRevisionLookupTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -433,6 +433,9 @@
 block discarded – undo
433 433
 			)->map();
434 434
 	}
435 435
 
436
+	/**
437
+	 * @param string $idString
438
+	 */
436 439
 	private function getMockEntityId( $idString ) {
437 440
 		$entityId = $this->createMock( EntityId::class );
438 441
 		$entityId->method( '__toString' )->willReturn( $idString );
Please login to merge, or discard this patch.
includes/ChangeOp/Deserialization/AliasChangeOpDeserializationTester.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 	}
87 87
 
88 88
 	/**
89
-	 * @return AliasesProvider|EntityDocument
89
+	 * @return EntityDocument
90 90
 	 */
91 91
 	abstract protected function getEntity();
92 92
 
Please login to merge, or discard this patch.
ChangeOp/Deserialization/DescriptionsChangeOpDeserializationTester.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 	}
68 68
 
69 69
 	/**
70
-	 * @return DescriptionsProvider|EntityDocument
70
+	 * @return EntityDocument
71 71
 	 */
72 72
 	abstract protected function getEntity();
73 73
 
Please login to merge, or discard this patch.
includes/ChangeOp/Deserialization/LabelsChangeOpDeserializationTester.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 	}
66 66
 
67 67
 	/**
68
-	 * @return LabelsProvider|EntityDocument
68
+	 * @return EntityDocument
69 69
 	 */
70 70
 	abstract protected function getEntity();
71 71
 
Please login to merge, or discard this patch.
lib/includes/SimpleCacheWithBagOStuff.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 * Fetches a value from the cache.
56 56
 	 *
57 57
 	 * @param string $key The unique key of this item in the cache.
58
-	 * @param mixed $default Default value to return if the key does not exist.
58
+	 * @param string $default Default value to return if the key does not exist.
59 59
 	 *
60 60
 	 * @return mixed The value of the item from the cache, or $default in case of cache miss.
61 61
 	 *
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
 	 * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
78 78
 	 *
79 79
 	 * @param string $key The key of the item to store.
80
-	 * @param mixed $value The value of the item to store, must be serializable.
81
-	 * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
80
+	 * @param string $value The value of the item to store, must be serializable.
81
+	 * @param integer $ttl Optional. The TTL value of this item. If no value is sent and
82 82
 	 *                                      the driver supports TTL then the library may set a default value
83 83
 	 *                                      for it or let the driver take care of that.
84 84
 	 *
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
 	/**
126 126
 	 * Obtains multiple cache items by their unique keys.
127 127
 	 *
128
-	 * @param iterable $keys A list of keys that can obtained in a single operation.
129
-	 * @param mixed $default Default value to return for keys that do not exist.
128
+	 * @param string[] $keys A list of keys that can obtained in a single operation.
129
+	 * @param string $default Default value to return for keys that do not exist.
130 130
 	 *
131 131
 	 * @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
132 132
 	 *
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 * Persists a set of key => value pairs in the cache, with an optional TTL.
167 167
 	 *
168 168
 	 * @param iterable $values A list of key => value pairs for a multiple-set operation.
169
-	 * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
169
+	 * @param integer $ttl Optional. The TTL value of this item. If no value is sent and
170 170
 	 *                                       the driver supports TTL then the library may set a default value
171 171
 	 *                                       for it or let the driver take care of that.
172 172
 	 *
Please login to merge, or discard this patch.
repo/includes/Hooks/HtmlPageLinkRendererBeginHookHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
 	 * @param Title|null $currentTitle
336 336
 	 * @param RequestContext $context
337 337
 	 *
338
-	 * @return bool
338
+	 * @return null|boolean
339 339
 	 */
340 340
 	private function shouldConvert( ?Title $currentTitle, RequestContext $context ) {
341 341
 		static $shouldConvert = null;
Please login to merge, or discard this patch.