Strict types: fix an issue in daily where the date could be an int
This commit is contained in:
parent
ec45749187
commit
4b3aca6623
2 changed files with 3 additions and 3 deletions
|
@ -349,7 +349,7 @@ public function days(): array
|
|||
$bookmarkDays = array_keys($bookmarkDays);
|
||||
sort($bookmarkDays);
|
||||
|
||||
return $bookmarkDays;
|
||||
return array_map('strval', $bookmarkDays);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -690,12 +690,12 @@ public function testCountHiddenPublic()
|
|||
*/
|
||||
public function testDays()
|
||||
{
|
||||
$this->assertEquals(
|
||||
$this->assertSame(
|
||||
['20100309', '20100310', '20121206', '20121207', '20130614', '20150310'],
|
||||
$this->publicLinkDB->days()
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
$this->assertSame(
|
||||
['20100309', '20100310', '20121206', '20121207', '20130614', '20141125', '20150310'],
|
||||
$this->privateLinkDB->days()
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue