fix: [bootstrap-helper:table] Relax some argument typing

develop-unstable
Sami Mokaddem 2022-12-02 09:49:03 +01:00
parent bdcf057608
commit 6e6107dc46
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ class BootstrapTable extends BootstrapGeneric
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'])) {
$cellContent = $field['formatter']($value, $row, $rowIndex);
@ -220,7 +220,7 @@ class BootstrapTable extends BootstrapGeneric
], $cellContent);
}
private function getValueFromObject(array $row, $field): string
private function getValueFromObject(array $row, $field)
{
$path = is_array($field) ? $field['path'] : $field;
$cellValue = Hash::get($row, $path);