* Use 'callable' instead of 'callback'.
* Remove '$' as part of a type name.
* Add missing type.
Change-Id: Ic1b39a7d8cbbee000d8fb2f3a1f71a621bd01993
* If a sink is already specified, this does nothing. This causes the 'sink' constructor
* option to override the 'callback' constructor option.
*
- * @param $callback|null $callback
+ * @param callable|null $callback
* @throws InvalidArgumentException
*/
protected function doSetCallback( $callback ) {
* Worker function for setting callbacks. Calls can originate both internally and externally
* via setCallback). Defaults to the internal read callback if $callback is null.
*
- * @param $callback|null $callback
+ * @param callable|null $callback
* @throws InvalidArgumentException
*/
protected function doSetCallback( $callback ) {
* @param array $args Array of form [ category name => sort key ]
* @param array $fakeResults Array of form [ category name => value to return from mocked
* LinkBatch ]
- * @param callback $variantLinkCallback Callback to replace findVariantLink() call
+ * @param callable $variantLinkCallback Callback to replace findVariantLink() call
* @param array $expectedNormal Expected return value of getCategoryLinks['normal']
* @param array $expectedHidden Expected return value of getCategoryLinks['hidden']
*/
/**
* @dataProvider provideConstructorFailue
- * @param $slots
+ * @param array $slots
*
* @covers \MediaWiki\Revision\RevisionSlots::__construct
* @covers \MediaWiki\Revision\RevisionSlots::setSlotsInternal
}
/**
- * @param $articleId
- * @param $revisionId
+ * @param int $articleId
+ * @param int $revisionId
* @return Title
*/
private function getMockTitle( $articleId, $revisionId ) {
class RevisionRendererTest extends MediaWikiTestCase {
/**
- * @param $articleId
- * @param $revisionId
+ * @param int $articleId
+ * @param int $revisionId
* @return Title
*/
private function getMockTitle( $articleId, $revisionId ) {
/**
* @dataProvider provideConstructorFailue
- * @param $slots
+ * @param array $slots
*
* @covers \MediaWiki\Revision\RevisionSlots::__construct
* @covers \MediaWiki\Revision\RevisionSlots::setSlotsInternal
* Creates a revision in the database.
*
* @param WikiPage $page
- * @param $summary
+ * @param string|Message|CommentStoreComment $summary
* @param null|string|Content $content
*
* @return RevisionRecord|null
* Creates a revision in the database.
*
* @param WikiPage $page
- * @param $summary
+ * @param string|Message|CommentStoreComment $summary
* @param null|string|Content $content
*
* @return RevisionRecord|null
/**
* @covers Wikimedia\Rdbms\Subquery
* @dataProvider provideSelectRowCount
- * @param $sql
- * @param $sqlText
+ * @param array $sql
+ * @param string $sqlText
*/
public function testSelectRowCount( $sql, $sqlText ) {
$this->database->selectRowCount(
* @covers SvgHandler::normaliseParamsInternal()
* @dataProvider provideNormaliseParamsInternal
*
- * @param $message
+ * @param string $message
* @param int $width
* @param int $height
* @param array $params
<?php
+use Wikimedia\Rdbms\IDatabase;
+
/**
* Tests for CategoryChangesAsRdf recent changes exporter.
* @covers CategoryChangesAsRdf
/**
* Mock category links iterator.
- * @param $dbr
+ * @param IDatabase $dbr
* @param array $ids
* @return array
*/