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 @@ class BookmarkFileService implements BookmarkServiceInterface
$bookmarkDays = array_keys($bookmarkDays);
sort($bookmarkDays);
return $bookmarkDays;
return array_map('strval', $bookmarkDays);
}
/**

View file

@ -690,12 +690,12 @@ class BookmarkFileServiceTest extends TestCase
*/
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()
);