We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d88cfe + 7602145 commit 766f76bCopy full SHA for 766f76b
1 file changed
system/View/Table.php
@@ -25,7 +25,7 @@ class Table
25
/**
26
* Data for table rows
27
*
28
- * @var array
+ * @var list<array>|list<list<array>>
29
*/
30
public $rows = [];
31
@@ -258,7 +258,7 @@ public function setSyncRowsWithHeading(bool $orderByKey)
258
259
* Ensures a standard associative array format for all cell data
260
261
- * @return array
+ * @return array<string, array>|list<array>
262
263
protected function _prepArgs(array $args)
264
{
@@ -381,7 +381,7 @@ public function generate($tableData = null)
381
$cell = $cell['data'] ?? '';
382
$out .= $temp;
383
384
- if ($cell === '' || $cell === null) {
+ if ($cell === '') {
385
$out .= $this->emptyCells;
386
} elseif (isset($this->function)) {
387
$out .= ($this->function)($cell);
0 commit comments