Skip to content

Commit 16f7808

Browse files
committed
Allow cache field of NowPlayingDto to be null
1 parent d51808f commit 16f7808

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Dto/NowPlayingDto.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NowPlayingDto
3131
protected $songHistory;
3232

3333
/**
34-
* @var string
34+
* @var string|null
3535
*/
3636
protected $cache;
3737

@@ -41,15 +41,15 @@ class NowPlayingDto
4141
* @param LiveDto $live
4242
* @param CurrentSongDto $currentSong
4343
* @param SongHistoryDto[] $songHistory
44-
* @param string $cache
44+
* @param string|null $cache
4545
*/
4646
public function __construct(
4747
StationDto $station,
4848
ListenersDto $listeners,
4949
LiveDto $live,
5050
CurrentSongDto $currentSong,
5151
array $songHistory,
52-
string $cache
52+
?string $cache
5353
) {
5454
$this->setStation($station)
5555
->setListeners($listeners)
@@ -160,19 +160,19 @@ public function setSongHistory(array $songHistory): NowPlayingDto
160160
}
161161

162162
/**
163-
* @return string
163+
* @return string|null
164164
*/
165-
public function getCache(): string
165+
public function getCache(): ?string
166166
{
167167
return $this->cache;
168168
}
169169

170170
/**
171-
* @param string $cache
171+
* @param string|null $cache
172172
*
173173
* @return NowPlayingDto
174174
*/
175-
public function setCache(string $cache): NowPlayingDto
175+
public function setCache(?string $cache): NowPlayingDto
176176
{
177177
$this->cache = $cache;
178178

0 commit comments

Comments
 (0)