Skip to content

Commit 323d508

Browse files
PascalThesingsaimaz
authored andcommitted
Add nullable for size and from methods (#301)
1 parent 71876a7 commit 323d508

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Search.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,15 +458,15 @@ public function getSuggests()
458458
}
459459

460460
/**
461-
* @return int
461+
* @return null|int
462462
*/
463463
public function getFrom()
464464
{
465465
return $this->from;
466466
}
467467

468468
/**
469-
* @param int $from
469+
* @param null|int $from
470470
*
471471
* @return $this
472472
*/
@@ -498,15 +498,15 @@ public function setTrackTotalHits(bool $trackTotalHits)
498498
}
499499

500500
/**
501-
* @return int
501+
* @return null|int
502502
*/
503503
public function getSize()
504504
{
505505
return $this->size;
506506
}
507507

508508
/**
509-
* @param int $size
509+
* @param null|int $size
510510
*
511511
* @return $this
512512
*/

0 commit comments

Comments
 (0)