Skip to content

Commit 766f76b

Browse files
authored
Merge pull request #8402 from kenjis/refactor-Table-phpstan-errors
refactor: Table class to fix phpstan errors
2 parents 6d88cfe + 7602145 commit 766f76b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/View/Table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Table
2525
/**
2626
* Data for table rows
2727
*
28-
* @var array
28+
* @var list<array>|list<list<array>>
2929
*/
3030
public $rows = [];
3131

@@ -258,7 +258,7 @@ public function setSyncRowsWithHeading(bool $orderByKey)
258258
*
259259
* Ensures a standard associative array format for all cell data
260260
*
261-
* @return array
261+
* @return array<string, array>|list<array>
262262
*/
263263
protected function _prepArgs(array $args)
264264
{
@@ -381,7 +381,7 @@ public function generate($tableData = null)
381381
$cell = $cell['data'] ?? '';
382382
$out .= $temp;
383383

384-
if ($cell === '' || $cell === null) {
384+
if ($cell === '') {
385385
$out .= $this->emptyCells;
386386
} elseif (isset($this->function)) {
387387
$out .= ($this->function)($cell);

0 commit comments

Comments
 (0)