Allow null on ApiQueryBase::addTimestampWhereRange

Also add null to the underlying functions used here

Change-Id: I2e45fa449cf4c82d9a0e4323c4ac3ac2155bcadc
This commit is contained in:
Umherirrender 2019-12-28 22:20:48 +01:00
parent 665f73b9c5
commit 3ec00a7405
2 changed files with 5 additions and 5 deletions

View file

@ -313,9 +313,9 @@ abstract class ApiQueryBase extends ApiBase {
* @param string $field Field name
* @param string $dir If 'newer', sort in ascending order, otherwise
* sort in descending order
* @param string $start Value to start the list at. If $dir == 'newer'
* @param string|null $start Value to start the list at. If $dir == 'newer'
* this is the lower boundary, otherwise it's the upper boundary
* @param string $end Value to end the list at. If $dir == 'newer' this
* @param string|null $end Value to end the list at. If $dir == 'newer' this
* is the upper boundary, otherwise it's the lower boundary
* @param bool $sort If false, don't add an ORDER BY clause
*/
@ -350,8 +350,8 @@ abstract class ApiQueryBase extends ApiBase {
* @see addWhereRange
* @param string $field
* @param string $dir
* @param string $start
* @param string $end
* @param string|int|null $start
* @param string|int|null $end
* @param bool $sort
*/
protected function addTimestampWhereRange( $field, $dir, $start, $end, $sort = true ) {

View file

@ -1997,7 +1997,7 @@ interface IDatabase {
*
* @param string|int|null $ts
*
* @return string
* @return string|null
*/
public function timestampOrNull( $ts = null );