Skip to content

Commit

Permalink
Merge pull request #8402 from kenjis/refactor-Table-phpstan-errors
Browse files Browse the repository at this point in the history
refactor: Table class to fix phpstan errors
  • Loading branch information
kenjis authored Jan 6, 2024
2 parents 6d88cfe + 7602145 commit 766f76b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/View/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Table
/**
* Data for table rows
*
* @var array
* @var list<array>|list<list<array>>
*/
public $rows = [];

Expand Down Expand Up @@ -258,7 +258,7 @@ public function setSyncRowsWithHeading(bool $orderByKey)
*
* Ensures a standard associative array format for all cell data
*
* @return array
* @return array<string, array>|list<array>
*/
protected function _prepArgs(array $args)
{
Expand Down Expand Up @@ -381,7 +381,7 @@ public function generate($tableData = null)
$cell = $cell['data'] ?? '';
$out .= $temp;

if ($cell === '' || $cell === null) {
if ($cell === '') {
$out .= $this->emptyCells;
} elseif (isset($this->function)) {
$out .= ($this->function)($cell);
Expand Down

0 comments on commit 766f76b

Please sign in to comment.