Strict types: fix an issue in daily where the date could be an int

This commit is contained in:
ArthurHoaro 2020-10-16 12:04:46 +02:00
parent ec45749187
commit 4b3aca6623
2 changed files with 3 additions and 3 deletions

View file

@ -349,7 +349,7 @@ public function days(): array
$bookmarkDays = array_keys($bookmarkDays);
sort($bookmarkDays);
return $bookmarkDays;
return array_map('strval', $bookmarkDays);
}
/**

View file

@ -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()
);