@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * See ApiQuery::getNamedDB() for more information |
119 | 119 | * @param string $name Name to assign to the database connection |
120 | 120 | * @param int $db One of the DB_* constants |
121 | - * @param array $groups Query groups |
|
121 | + * @param string $groups Query groups |
|
122 | 122 | * @return Database |
123 | 123 | */ |
124 | 124 | public function selectNamedDB( $name, $db, $groups ) { |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | * here in the same way it treats a false return from addValue(). |
399 | 399 | * |
400 | 400 | * @since 1.28 |
401 | - * @param object $row Database row |
|
401 | + * @param stdClass|null $row Database row |
|
402 | 402 | * @param array &$data Data to be added to the result |
403 | 403 | * @param array &$hookData Hook data from ApiQueryBase::select() |
404 | 404 | * @return bool Return false if row processing should end with continuation |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | |
582 | 582 | /** |
583 | 583 | * @param string $hash |
584 | - * @return bool |
|
584 | + * @return integer |
|
585 | 585 | */ |
586 | 586 | public function validateSha1Hash( $hash ) { |
587 | 587 | return preg_match( '/^[a-f0-9]{40}$/', $hash ); |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | |
590 | 590 | /** |
591 | 591 | * @param string $hash |
592 | - * @return bool |
|
592 | + * @return integer |
|
593 | 593 | */ |
594 | 594 | public function validateSha1Base36Hash( $hash ) { |
595 | 595 | return preg_match( '/^[a-z0-9]{31}$/', $hash ); |