TablePager: fix param documentation for formatValue()

Can receive null value if the field isn't in the database result.

Change-Id: Id995a384dc58f5d8216a7309490b98558004d071
This commit is contained in:
DannyS712 2021-09-09 00:56:11 +00:00 committed by Thiemo Kreuz
parent 4dae3b1a06
commit 7cca5dea0b
5 changed files with 6 additions and 5 deletions

View file

@ -465,7 +465,8 @@ abstract class TablePager extends IndexPager {
* need more context.
*
* @param string $name The database field name
* @param string $value The value retrieved from the database
* @param string|null $value The value retrieved from the database, or null if
* the row doesn't contain this field
*/
abstract public function formatValue( $name, $value );

View file

@ -273,7 +273,7 @@ class AllMessagesTablePager extends TablePager {
/**
* @param string $field
* @param string $value
* @param string|null $value
* @return string HTML
*/
public function formatValue( $field, $value ) {

View file

@ -121,7 +121,7 @@ class BlockListPager extends TablePager {
/**
* @param string $name
* @param string $value
* @param string|null $value
* @return string
* @suppress PhanTypeArraySuspicious
*/

View file

@ -454,7 +454,7 @@ class ImageListPager extends TablePager {
/**
* @param string $field
* @param string $value
* @param string|null $value
* @return Message|string|int The return type depends on the value of $field:
* - thumb: string
* - img_timestamp: string

View file

@ -137,7 +137,7 @@ class ProtectedPagesPager extends TablePager {
/**
* @param string $field
* @param string $value
* @param string|null $value
* @return string HTML
* @throws MWException
*/