Skip to content

Commit cc0aa98

Browse files
authored
Update: Add return types
1 parent 769bc84 commit cc0aa98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Classes/Fusion/RawListImplementation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function getAssetTree(): array
127127
if (!isset($this->items)) {
128128
return [];
129129
}
130-
return $this->items;
130+
return $this->items ?? [];
131131
}
132132

133133
/**
@@ -199,7 +199,7 @@ public function buildAssetTree(): void
199199
*
200200
* @return boolean
201201
*/
202-
public function getRenderHiddenInIndex()
202+
public function getRenderHiddenInIndex(): bool
203203
{
204204
if ($this->renderHiddenInIndex === null) {
205205
$this->renderHiddenInIndex = (bool)$this->fusionValue('renderHiddenInIndex');
@@ -213,7 +213,7 @@ public function getRenderHiddenInIndex()
213213
*
214214
* @return string
215215
*/
216-
public function getFilter()
216+
public function getFilter(): string
217217
{
218218
$filter = $this->fusionValue('filter');
219219
if ($filter === null) {

0 commit comments

Comments
 (0)