File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments