Skip to content

Commit

Permalink
chore: docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Sep 26, 2024
1 parent b0f9f4a commit 8bc5c92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Contracts/src/UI/Collection/TableRowsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
*/
interface TableRowsContract extends Enumerable
{
public function pushRow(TableCellsContract $cells, int|string|null $key, ?Closure $builder = null): self;
public function pushRow(TableCellsContract $cells, int|string|null $key = null, ?Closure $builder = null): self;
}
2 changes: 1 addition & 1 deletion src/UI/src/Collections/TableRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

final class TableRows extends Collection implements TableRowsContract
{
public function pushRow(TableCellsContract $cells, int|string|null $key, ?Closure $builder = null): self
public function pushRow(TableCellsContract $cells, int|string|null $key = null, ?Closure $builder = null): self
{
return $this->push(
TableRow::make(
Expand Down
4 changes: 2 additions & 2 deletions src/UI/src/Components/Table/TableBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function getRowReorderAttributes(): Closure
}

/**
* @param TableRowsContract|Closure(TableRowsContract $default): TableRowsContract $rows
* @param TableRowsContract|Closure(TableRowContract $default): TableRowsContract $rows
*/
public function headRows(TableRowsContract|Closure $rows): self
{
Expand Down Expand Up @@ -434,7 +434,7 @@ public function getRowBulkCheckbox(): Checkbox
}

/**
* @param TableRowsContract|Closure(TableRowsContract $default): TableRowsContract $rows
* @param TableRowsContract|Closure(TableRowContract $default): TableRowsContract $rows
*/
public function footRows(TableRowsContract|Closure $rows): self
{
Expand Down

0 comments on commit 8bc5c92

Please sign in to comment.