Merge pull request #1592 from ArthurHoaro/fix/strict-type-daily
Strict types: fix an issue in daily where the date could be an int
This commit is contained in:
commit
cd2878edee
2 changed files with 3 additions and 3 deletions
|
@ -349,7 +349,7 @@ class BookmarkFileService implements BookmarkServiceInterface
|
|||
$bookmarkDays = array_keys($bookmarkDays);
|
||||
sort($bookmarkDays);
|
||||
|
||||
return $bookmarkDays;
|
||||
return array_map('strval', $bookmarkDays);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue