Some are needed to make better results with phan in extensions
For example:
File CentralNoticeCampaignLogPager.php line 12:
Assigning array{0:20,1:50,2:100} to property but
\CentralNoticeCampaignLogPager->mLimitsShown is
array{0:20,1:50,2:100,3:250,4:500}
[PhanTypeMismatchProperty]
With "@var int[]" the type is correct
Change-Id: Ic68910bf17344852ad11fcc000a47891e4bf0179
public $mLimitsShown = [ 20, 50, 100, 250, 500 ];
/** @var int The default entry limit choosen for clients */
public $mDefaultLimit = 50;
public $mLimitsShown = [ 20, 50, 100, 250, 500 ];
/** @var int The default entry limit choosen for clients */
public $mDefaultLimit = 50;
- /** @var string|int The starting point to enumerate entries */
+ /** @var mixed The starting point to enumerate entries */
public $mOffset;
/** @var int The maximum number of entries to show */
public $mLimit;
public $mOffset;
/** @var int The maximum number of entries to show */
public $mLimit;
public $mQueryDone = false;
/** @var IDatabase */
public $mDb;
public $mQueryDone = false;
/** @var IDatabase */
public $mDb;
- /** @var stdClass|null Extra row fetched at the end to see if the end was reached */
+ /** @var stdClass|bool|null Extra row fetched at the end to see if the end was reached */
public $mPastTheEndRow;
/**
* The index to actually be used for ordering. This is a single column,
* for one ordering, even if multiple orderings are supported.
public $mPastTheEndRow;
/**
* The index to actually be used for ordering. This is a single column,
* for one ordering, even if multiple orderings are supported.
*/
protected $mIndexField;
/**
* An array of secondary columns to order by. These fields are not part of the offset.
* This is a column list for one ordering, even if multiple orderings are supported.
*/
protected $mIndexField;
/**
* An array of secondary columns to order by. These fields are not part of the offset.
* This is a column list for one ordering, even if multiple orderings are supported.
*/
protected $mExtraSortFields;
/** For pages that support multiple types of ordering, which one to use.
*/
protected $mExtraSortFields;
/** For pages that support multiple types of ordering, which one to use.
*/
protected $mOrderType;
/**
*/
protected $mOrderType;
/**
*
* Like $mIndexField, $mDefaultDirection will be a single value even if the
* class supports multiple default directions for different order types.
*
* Like $mIndexField, $mDefaultDirection will be a single value even if the
* class supports multiple default directions for different order types.
*/
public $mDefaultDirection;
*/
public $mDefaultDirection;
- /** True if the current result set is the first one */
+ /** @var bool True if the current result set is the first one */
- protected $mLastShown, $mFirstShown, $mPastTheEndIndex, $mDefaultQuery, $mNavigationBar;
+ /** @var mixed */
+ protected $mLastShown;
+ /** @var mixed */
+ protected $mFirstShown;
+ /** @var mixed */
+ protected $mPastTheEndIndex;
+ /** @var array */
+ protected $mDefaultQuery;
+ /** @var string */
+ protected $mNavigationBar;
/**
* Whether to include the offset in the query
/**
* Whether to include the offset in the query
*/
protected $mIncludeOffset = false;
*/
protected $mIncludeOffset = false;
*/
abstract class RangeChronologicalPager extends ReverseChronologicalPager {
*/
abstract class RangeChronologicalPager extends ReverseChronologicalPager {
protected $rangeConds = [];
/**
protected $rangeConds = [];
/**
* @ingroup Pager
*/
abstract class ReverseChronologicalPager extends IndexPager {
* @ingroup Pager
*/
abstract class ReverseChronologicalPager extends IndexPager {
public $mDefaultDirection = IndexPager::DIR_DESCENDING;
public $mDefaultDirection = IndexPager::DIR_DESCENDING;
public $mDay;
public function getNavigationBar() {
public $mDay;
public function getNavigationBar() {
* @ingroup Pager
*/
abstract class TablePager extends IndexPager {
* @ingroup Pager
*/
abstract class TablePager extends IndexPager {
protected $mCurrentRow;
public function __construct( IContextSource $context = null ) {
protected $mCurrentRow;
public function __construct( IContextSource $context = null ) {