fix: [bootstrap-helper:table] Relax some argument typing
parent
bdcf057608
commit
6e6107dc46
|
@ -198,7 +198,7 @@ class BootstrapTable extends BootstrapGeneric
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function genCell(string $value, array $field = [], array $row = [], int $rowIndex = 0): string
|
private function genCell($value, array $field = [], array $row = [], int $rowIndex = 0): string
|
||||||
{
|
{
|
||||||
if (isset($field['formatter'])) {
|
if (isset($field['formatter'])) {
|
||||||
$cellContent = $field['formatter']($value, $row, $rowIndex);
|
$cellContent = $field['formatter']($value, $row, $rowIndex);
|
||||||
|
@ -220,7 +220,7 @@ class BootstrapTable extends BootstrapGeneric
|
||||||
], $cellContent);
|
], $cellContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getValueFromObject(array $row, $field): string
|
private function getValueFromObject(array $row, $field)
|
||||||
{
|
{
|
||||||
$path = is_array($field) ? $field['path'] : $field;
|
$path = is_array($field) ? $field['path'] : $field;
|
||||||
$cellValue = Hash::get($row, $path);
|
$cellValue = Hash::get($row, $path);
|
||||||
|
|
Loading…
Reference in New Issue